@extends('admin.layouts.master') @section('css') @endsection @section('page-header') @endsection @section('content')
{{ number_format($stats['total_cards']) }}
إجمالي البطاقات
{{ number_format($stats['active_cards']) }}
البطاقات النشطة
{{ number_format($stats['frozen_cards']) }}
البطاقات المجمدة
{{ number_format($stats['terminated_cards']) }}
البطاقات الملغاة
{{ number_format($stats['total_balance'], 2) }}
إجمالي الرصيد (USD)
{{ number_format($stats['total_operations']) }}
إجمالي العمليات
العمليات حسب النوع
إنشاء: {{ $stats['operations_by_type']['create'] }} شحن: {{ $stats['operations_by_type']['recharge'] }} تجميد: {{ $stats['operations_by_type']['freeze'] }} إلغاء تجميد: {{ $stats['operations_by_type']['unfreeze'] }} إنهاء: {{ $stats['operations_by_type']['terminate'] }}
آخر البطاقات المنشأة
عرض الكل
@if ($stats['recent_cards']->count() > 0)
@foreach ($stats['recent_cards'] as $card) @php $statusLabels = ['active' => 'نشط', 'frozen' => 'مجمد', 'terminated' => 'ملغي']; $statusClasses = ['active' => 'success', 'frozen' => 'warning', 'terminated' => 'danger']; @endphp @endforeach
البطاقة المستخدم الرصيد الحالة التاريخ
{{ $card->name }} {{ $card->user?->name ?? '-' }} {{ number_format($card->balance, 2) }} {{ $statusLabels[$card->status] ?? $card->status }} {{ $card->created_at->format('m/d H:i') }}
@else

لا توجد بطاقات

@endif
آخر العمليات
عرض الكل
@if ($stats['recent_operations']->count() > 0)
@foreach ($stats['recent_operations'] as $op) @php $typeLabels = ['create' => 'إنشاء', 'recharge' => 'شحن', 'freeze' => 'تجميد', 'unfreeze' => 'إلغاء تجميد', 'terminate' => 'إنهاء']; $typeClasses = ['create' => 'primary', 'recharge' => 'success', 'freeze' => 'warning', 'unfreeze' => 'info', 'terminate' => 'danger']; $statusLabels = ['pending' => 'انتظار', 'completed' => 'مكتمل', 'failed' => 'فشل']; $statusClasses = ['pending' => 'warning', 'completed' => 'success', 'failed' => 'danger']; @endphp @endforeach
البطاقة النوع المبلغ الحالة التاريخ
@if ($op->virtualCard) {{ $op->virtualCard->name }} @else - @endif {{ $typeLabels[$op->operation_type] ?? $op->operation_type }} {{ $op->amount_usd ? number_format($op->amount_usd, 2) : '-' }} {{ $statusLabels[$op->status] ?? $op->status }} {{ $op->created_at->format('m/d H:i') }}
@else

لا توجد عمليات

@endif
@endsection