Gerez les paiements et demandes de retrait
{{ $this->getPendingWithdrawalsCount() }}
Retraits en attente
{{ number_format($this->getTotalPendingAmount(), 0, ',', ' ') }} F
Montant en attente
{{ count($transactions) }}
Transactions recentes
| Boutique | Vendeur | Montant | Methode | Statut | Date | Actions |
|---|---|---|---|---|---|---|
|
{{ strtoupper(substr($withdrawal['shop_name'] ?? 'B', 0, 1)) }}
{{ $withdrawal['shop_name'] ?? 'Boutique' }} |
{{ $withdrawal['seller_name'] ?? '-' }} {{ $withdrawal['phone'] ?? '-' }} |
{{ number_format($withdrawal['amount'] ?? 0, 0, ',', ' ') }} F |
@php $method = $withdrawal['method'] ?? ''; $methodClass = str_contains($method, 'Orange') ? 'bg-gradient-to-r from-orange-100 to-orange-50 text-orange-800' : (str_contains($method, 'Wave') ? 'bg-gradient-to-r from-blue-100 to-blue-50 text-blue-800' : 'bg-gradient-to-r from-green-100 to-green-50 text-green-800'); @endphp {{ $method ?: '-' }} | @if(($withdrawal['status'] ?? '') === 'pending') En attente @elseif(($withdrawal['status'] ?? '') === 'approved') Approuve @else Rejete @endif | {{ \Carbon\Carbon::parse($withdrawal['created_at'] ?? now())->format('d/m/Y H:i') }} |
@if(($withdrawal['status'] ?? '') === 'pending')
|
|
Aucun retrait en attente Tous les retraits ont ete traites |
||||||
| Type | Reference | Client | Montant | Methode | Statut | Date |
|---|---|---|---|---|---|---|
| @if(($transaction['type'] ?? '') === 'payment') Paiement @else Remboursement @endif | {{ $transaction['order_ref'] ?? '-' }} |
{{ $transaction['client_name'] ?? 'Client' }} |
{{ ($transaction['type'] ?? '') === 'refund' ? '-' : '+' }}{{ number_format($transaction['amount'] ?? 0, 0, ',', ' ') }} F |
@php $method = $transaction['method'] ?? ''; $methodClass = str_contains($method, 'Orange') ? 'bg-gradient-to-r from-orange-100 to-orange-50 text-orange-800' : (str_contains($method, 'Wave') ? 'bg-gradient-to-r from-blue-100 to-blue-50 text-blue-800' : 'bg-gradient-to-r from-green-100 to-green-50 text-green-800'); @endphp {{ $method ?: '-' }} | Complete | {{ \Carbon\Carbon::parse($transaction['created_at'] ?? now())->format('d/m/Y H:i') }} |
|
Aucune transaction Les transactions apparaitront ici |
||||||