@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) }} ج.س
| المستخدم | المبلغ | بيانات التحويل | التاريخ | الحالة | الإجراءات |
|---|---|---|---|---|---|
|
{{ 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 |
| لا توجد طلبات سحب حالياً | |||||