@extends('layouts.app') @section('title', 'Paiements') @section('content') @include('admin._nav')

Toutes les transactions

{{ $payments->total() }} transaction(s) au total

Total encaissé

{{ number_format($totalSuccess, 0, ',', ' ') }} FCFA

@if(request()->anyFilled(['q', 'status'])) Réinitialiser @endif
@forelse($payments as $payment) @php $statusMap = [ 'initiated' => ['Initiée', 'bg-amber-50 text-amber-600'], 'success' => ['Réussie', 'bg-emerald-50 text-emerald-600'], 'failed' => ['Échouée', 'bg-rose-50 text-rose-600'], ]; [$statusLabel, $statusClasses] = $statusMap[$payment->status] ?? ['Inconnu', 'bg-gray-100 text-gray-500']; @endphp @empty @endforelse
Transaction Client Événement Montant Statut Date
{{ $payment->transaction_id }}

{{ optional(optional($payment->order)->user)->name ?? '—' }}

{{ optional(optional($payment->order)->user)->email }}

{{ optional(optional($payment->order)->event)->title ?? '—' }} {{ number_format($payment->amount, 0, ',', ' ') }} FCFA {{ $statusLabel }} {{ $payment->created_at->translatedFormat('d M Y à H:i') }}
Aucune transaction ne correspond à ces filtres.
{{ $payments->links() }}
@endsection