@extends('layouts.app') @section('title', 'لوحة الإدارة العامة') @php $allCurrencies = ['EGP' => 'جنيه مصري', 'USD' => 'دولار أمريكي', 'TRY' => 'ليرة تركية']; $currencyIcons = ['EGP' => '🇪🇬', 'USD' => '🇺🇸', 'TRY' => '🇹🇷']; $activeCurrencies = $incomeByCurrency->pluck('currency')->merge($expensesByCurrency->pluck('currency'))->unique()->sort()->values()->toArray(); if (empty($activeCurrencies)) $activeCurrencies = ['EGP', 'USD', 'TRY']; @endphp @section('content')
متابعة جميع الأقسام في مكان واحد
👤 المستخدمين
{{ $counts['users'] }}
📞 الليدات
{{ $counts['leads'] }}
🎓 الطلاب المسجلين
{{ $counts['students'] }}
📋 القبولات
{{ $counts['applications'] }}
💰 الإيرادات
{{ $counts['payments'] }}
💸 المصروفات
{{ $counts['expenses'] }}
| العملة | الإيرادات | المصروفات | صافي الربح |
|---|---|---|---|
|
{{ $currencyIcons[$cur] ?? '💱' }}
{{ $cur }} {{ $allCurrencies[$cur] ?? $cur }} |
{{ number_format($inc, 2) }} | {{ number_format($exp, 2) }} | {{ number_format($net, 2) }} @if($net >= 0) ▲ @else ▼ @endif |
| لا توجد بيانات | |||