@extends('layouts.app') @push('styles') @endpush @section('content')

📊 ملخص محفظة الشركة

{{-- فلتر المدة --}}
{{-- الكروت الإحصائية --}}
رصيد المحفظة الفعلي

{{ number_format($walletBalance ?? 0, 2) }} د.ل

العمولات

{{ number_format($totals['commissions'] ?? 0, 2) }} د.ل

الإيداعات

{{ number_format($totals['deposits'] ?? 0, 2) }} د.ل

السحب

{{ number_format($totals['withdraws'] ?? 0, 2) }} د.ل

المرتجعات

{{ number_format($totals['refunds'] ?? 0, 2) }} د.ل

صافي التدفقات
{{-- تم حذف كتلة @php المعاد صياغتها خطأ هنا والاعتماد على حسابات الـ Controller الموثوقة --}}

{{ number_format($netFlow ?? 0, 2) }} د.ل

{{-- ويدجت الديون - منفصل تماماً ومستقل عن العمليات الحسابية لبقية الكروت --}}
ديون المضيفين المستحقة

{{ number_format($totalDebts ?? 0, 2) }} د.ل

عمولات غير محصلة (مدفوعة نقداً)

{{ number_format($pendingCashDeductions ?? 0, 2) }} د.ل

{{-- Popup تفاصيل الديون --}} {{-- فلاتر جدول العمليات --}}
{{-- جدول المعاملات --}}
@foreach($transactions as $t) @endforeach
# المالك المحفظة النوع المبلغ الحالة التاريخ
{{ $t->id }} {{ $t->owner_name }} {{ $t->wallet_no }} {{ $t->type }} {{ number_format($t->amount, 2) }} د.ل {{ $t->confirmed }} {{ $t->created_at }}
{{ $transactions->links() }}
@endsection @push('page_scripts') @endpush