@extends('admin.layout') @section('title', 'Dashboard') @section('content') @php $member = $overview['member'] ?? []; $staff = $overview['staff'] ?? []; @endphp

Dashboard

Kullanıcı
{{ $usersCount }}
Bekleyen Bakiye
{{ $pendingBalance }}
Bekleyen Katılım
{{ $pendingJoins }}
Yaklaşan Maç
{{ $upcomingMatches }}
Yayındaki Etkinlik
{{ $eventsCount }}
Aktif Topluluk
{{ $communitiesCount ?? 0 }}

Yaklaşan Etkinlikler

@forelse(($upcomingEvents ?? collect()) as $event)
@if($event->cover_path) @endif {{ $event->title }}
{{ optional($event->starts_at)->format('d.m.Y H:i') }} · {{ $event->location ?: 'Konum yok' }}
Düzenle
@empty
Yaklaşan etkinlik yok.
@endforelse

Topluluklar

@forelse(($featuredCommunities ?? collect()) as $community)
@if($community->cover_path || $community->logo_path) @endif {{ $community->name }}
{{ $community->members_count }} üye · {{ $community->category ?: 'Topluluk' }}
{{ \Illuminate\Support\Str::limit($community->description ?: '', 90) }}
Yönet
@empty
Henüz topluluk yok.
@endforelse

Bakiye özeti

@if(auth()->user()?->isAdmin())
Üye bakiyeleri
{{ number_format((float)($member['current_balance_total'] ?? 0), 2, ',', '.') }} ₺
Yüklenen {{ number_format((float)($member['total_credited'] ?? 0), 2, ',', '.') }} ₺ · Harcanan {{ number_format((float)($member['total_spent'] ?? 0), 2, ',', '.') }} ₺
{{ $staff['label'] ?? 'Yönetici tutarı' }}
{{ number_format((float)($staff['current_balance_total'] ?? 0), 2, ',', '.') }} ₺
Yüklenen {{ number_format((float)($staff['total_credited'] ?? 0), 2, ',', '.') }} ₺ · Harcanan {{ number_format((float)($staff['total_spent'] ?? 0), 2, ',', '.') }} ₺
Yönetici etkinlik+maç harcaması
{{ number_format((float)(($staff['event_fees'] ?? 0) + ($staff['match_fees'] ?? 0)), 2, ',', '.') }} ₺
Üye etkinlik+maç harcaması
{{ number_format((float)(($member['event_fees'] ?? 0) + ($member['match_fees'] ?? 0)), 2, ',', '.') }} ₺
@else
Bakiye özeti yalnızca yöneticiler tarafından görüntülenebilir.
@endif @endsection