@extends('admin.layouts.admin') @section('content')

إدارة عمليات الدفع

إجمالي: {{ $payments->total() }}
@if(session('success'))
{{ session('success') }}
@endif
@forelse($payments as $payment) @empty @endforelse
المستخدم رقم الطلب المبلغ الطريقة الإيصال الحالة التاريخ العمليات
{{ $payment->user->name }}
{{ $payment->user->phone }}
{{ $payment->transaction_id }} {{ number_format($payment->amount, 2) }} ج.م @php $methodLabels = ['vodafone' => 'فودافون كاش', 'instapay' => 'InstaPay', 'fawry' => 'فوري (Fawry)']; $methodClasses = ['vodafone' => 'bg-red-50 text-red-700', 'instapay' => 'bg-blue-50 text-blue-700', 'fawry' => 'bg-yellow-50 text-yellow-700']; @endphp {{ $methodLabels[$payment->method] ?? $payment->method }} @php $statusLabels = ['pending' => 'قيد المراجعة', 'approved' => 'مقبول', 'rejected' => 'مرفوض']; $statusClasses = ['pending' => 'bg-yellow-100 text-yellow-800', 'approved' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800']; @endphp {{ $statusLabels[$payment->status] ?? $payment->status }} {{ $payment->created_at->format('Y-m-d H:i') }}
@if($payment->status === 'pending')
@csrf
@csrf
@endif
@csrf @method('DELETE')
لا توجد عمليات دفع حالياً.
{{ $payments->links() }}
@endsection