@extends('admin.layout')
@section('title', 'Dashboard')
@section('content')
@php
$member = $overview['member'] ?? [];
$staff = $overview['staff'] ?? [];
@endphp
@forelse(($featuredCommunities ?? collect()) as $community)
@if($community->cover_path || $community->logo_path)
 ?: $community->logoUrl() }})
@endif
{{ $community->name }}
{{ $community->members_count }} üye · {{ $community->category ?: 'Topluluk' }}
{{ \Illuminate\Support\Str::limit($community->description ?: '', 90) }}
@empty
@endforelse
Ü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