@extends('admin.layout.layout') @section('title', 'Dashboard') @section('subtitle', 'Tüm operasyonlarınızın genel bakışını takip edin.') @section('admin_content_class', 'dashboard-content') @section('content') @php $statusLabels = [ 0 => ['label' => 'Pasif', 'class' => 'orange'], 1 => ['label' => 'Yayında', 'class' => 'green'], 2 => ['label' => 'Tamamlandı', 'class' => 'blue'], ]; $apiTotal = max((int) ($apiRequestStats['total'] ?? 0), 1); $apiSuccess = (int) ($apiRequestStats['success'] ?? 0); $apiFailed = (int) ($apiRequestStats['failed'] ?? 0); $apiUnauthorized = (int) ($apiRequestStats['unauthorized'] ?? 0); $apiOther = (int) ($apiRequestStats['other'] ?? 0); $pct = fn ($value) => number_format(($value / $apiTotal) * 100, 1, ',', '.'); $actualApiTotal = (int) ($apiRequestStats['total'] ?? 0); $changeLabel = fn ($key) => number_format(abs($statCards[$key]['change'] ?? 0), 1, ',', '.'); $changeIcon = fn ($key) => ($statCards[$key]['change'] ?? 0) >= 0 ? '↑' : '↓'; @endphp

Operasyon Merkezi

İlan, banka, kullanıcı, evrak ve API işlemlerini tek ekrandan yönetin.
Kritik operasyonlara hızlı erişim sağlayın.

+ Yeni İlan API Yönetimi Bildirim Logları
▤
Toplam İlan
{{ number_format($statCards['posts']['value'] ?? 0, 0, ',', '.') }}
{!! $changeIcon('posts') !!} %{{ $changeLabel('posts') }} önceki aya göre
⚒
Aktif İhale
{{ number_format($statCards['active_posts']['value'] ?? 0, 0, ',', '.') }}
{!! $changeIcon('active_posts') !!} %{{ $changeLabel('active_posts') }} önceki aya göre
♚
Kullanıcı
{{ number_format($statCards['users']['value'] ?? 0, 0, ',', '.') }}
{!! $changeIcon('users') !!} %{{ $changeLabel('users') }} önceki aya göre
◇
API İstemcisi
{{ number_format($statCards['api_clients']['value'] ?? 0, 0, ',', '.') }}
{!! $changeIcon('api_clients') !!} %{{ $changeLabel('api_clients') }} önceki aya göre

Son Eklenen İlanlar

Tüm İlanlara Git →
@forelse($latestPosts as $post) @php $property = $post->postable; $category = $property ? (config('enums.property_type')[$property->property_type] ?? 'Gayrimenkul') : 'Gayrimenkul'; $status = $statusLabels[$post->tender_status] ?? ['label' => 'Yayında', 'class' => 'green']; @endphp @empty @endforelse
İLAN BAŞLIĞI KATEGORİ DURUM EKLENME TARİHİ
{{ Str::limit($post->title, 42) }} {{ $category }} {!! $status['label'] !!} {{ optional($post->created_at)->format('d.m.Y H:i') }} ⋮
Henüz ilan bulunamadı.

İhale Aktivitesi

Tümüne Git →
@forelse($tenderActivities as $post) @php $lastOffer = $post->offers->sortByDesc('created_at')->first(); @endphp
⚒
{{ Str::limit($post->title, 20) }}
@if($lastOffer) Yeni teklif: {{ number_format($lastOffer->price, 0, ',', '.') }} TL @else İhale başladı @endif
{{ optional($lastOffer?->created_at ?? $post->updated_at)->format('H:i') }}
@empty
○
Aktif ihale bulunamadı
Yeni aktivite oluştuğunda burada görünür.
--:--
@endforelse

API İstekleri

Toplam{{ number_format($actualApiTotal, 0, ',', '.') }}
Başarılı{{ number_format($apiSuccess, 0, ',', '.') }}%{{ $pct($apiSuccess) }}
Hatalı{{ number_format($apiFailed, 0, ',', '.') }}%{{ $pct($apiFailed) }}
Yetkisiz{{ number_format($apiUnauthorized, 0, ',', '.') }}%{{ $pct($apiUnauthorized) }}
Diğer{{ number_format($apiOther, 0, ',', '.') }}%{{ $pct($apiOther) }}
API Detaylarına Git →

Sistem Performansı

100%75%50%25%0% @foreach(($performance['labels'] ?? []) as $label) {{ $label['text'] }} @endforeach {{ $performance['latest_label'] ?? '' }} %{{ $performance['latest'] ?? 0 }}

Hızlı İşlemler

Son Log Kayıtları

Tümünü Gör →
@forelse($recentApiLogs as $log)
API isteği {{ $log->status_code >= 200 && $log->status_code < 300 ? 'başarılı' : 'başarısız' }}: {{ $log->endpoint }} {{ optional($log->created_at)->format('H:i') }}
@empty
Henüz API log kaydı bulunmuyor. --:--
@endforelse
@endsection