@extends('layouts.admin') @section('header', 'إدارة السحوبات') @section('content')

طلبات معلقة

{{ $withdrawals->where('status', 'pending')->count() }}

تمت الموافقة هذا الشهر

{{ $withdrawals->where('status', 'processed')->count() }}

إجمالي المسحوبات

{{ number_format($withdrawals->where('status', 'processed')->sum('amount')) }} ج.س

رصيد متاح

{{ number_format($remainingBalance) }} ج.س

@forelse($withdrawals as $withdrawal) @empty @endforelse
المستخدم المبلغ بيانات التحويل التاريخ الحالة الإجراءات
{{ mb_substr($withdrawal->user->name, 0, 1) }}

{{ $withdrawal->user->name }}

{{ $withdrawal->user->phone }}

{{ number_format($withdrawal->amount) }} {{ $withdrawal->bank_details }} {{ $withdrawal->created_at->format('Y-m-d H:i') }} @if ($withdrawal->status == 'pending') معلق @elseif($withdrawal->status == 'processed') تم التحويل @else مرفوض @endif @if ($withdrawal->status == 'pending' || $withdrawal->status == 'rejected') @elseif($withdrawal->status == 'processed') @php $hasReceipt = $withdrawal->receipt_path && \Illuminate\Support\Facades\Storage::disk('public')->exists($withdrawal->receipt_path); @endphp @else - @endif
لا توجد طلبات سحب حالياً
{{ $withdrawals->links() }}
@endsection