@extends('admin.layouts.master') @section('title', 'كشوف الحسابات - إدارة الحسابات المالية') @section('css') @endsection @section('content')
{{-- ترويسة الصفحة --}}

كشوف الحسابات المالية

متابعة شاملة لجميع الحسابات النقدية والبنكية — ألواح أكريليك وبولي كاربونيت

إجمالي أرصدة الحسابات

{{ number_format($stats['total_balance'], 2) }} ج.م

{{ $stats['active_accounts'] }} حساب نشط من {{ $stats['total_accounts'] }}
{{-- بطاقات الإحصاء --}} @php $typeColors = ['cash_box'=>'success','bank'=>'primary','instapay'=>'info','wallet'=>'warning']; $typeIcons = ['cash_box'=>'ti-cash','bank'=>'ti-building-bank','instapay'=>'ti-bolt','wallet'=>'ti-wallet']; $accountsByType = $accounts->groupBy('account_type'); @endphp
@foreach($stats['types'] as $typeKey => $typeName) @php $cnt = $accountsByType->get($typeKey, collect())->count(); @endphp
@endforeach
{{-- تصفية حسب النوع --}}
تصفية حسب النوع: @foreach($stats['types'] as $typeKey => $typeName) @endforeach
{{-- جدول الحسابات --}}
قائمة جميع الحسابات المالية
{{ $accounts->count() }} حساب
@forelse($accounts as $i => $account) @php $bal = $account->current_balance; $tKey = $account->account_type; $color = $typeColors[$tKey] ?? 'secondary'; $icon = $typeIcons[$tKey] ?? 'ti-credit-card'; $tName = \App\Models\PaymentAccount::TYPES[$tKey] ?? $tKey; @endphp @empty @endforelse @if($accounts->isNotEmpty()) @endif
# اسم الحساب النوع كود الحساب الرصيد الحالي الحالة إجراءات
{{ $i + 1 }}
{{ $account->name_ar }}
@if($account->provider_name) {{ $account->provider_name }} @endif
{{ $account->code ?: '—' }} {{ number_format($bal, 2) }} ج.م @if($account->is_active) نشط @else موقف @endif كشف الحساب
لا توجد حسابات مسجلة حتى الآن
الإجمالي الكلي {{ number_format($stats['total_balance'], 2) }} ج.م
@endsection @section('js') @endsection