@extends('layouts.app') @section('title', 'Mes Paiements') @section('content')
Historique de vos transactions et paiements
Total dépensé
{{ number_format($totalSpent ?? 0, 2) }} €
Transactions
{{ $transactionsCount ?? 0 }}
En attente
{{ $pendingCount ?? 0 }}
Remboursés
{{ $refundedCount ?? 0 }}
| Date | Description | Montant | Statut | Actions |
|---|---|---|---|---|
| {{ $transaction->created_at->format('d/m/Y H:i') }} | {{ $transaction->description ?? 'Paiement réservation' }} | {{ number_format($transaction->amount, 2) }} € | @php $statusClasses = [ 'completed' => 'bg-green-100 text-green-800', 'pending' => 'bg-yellow-100 text-yellow-800', 'failed' => 'bg-red-100 text-red-800', 'refunded' => 'bg-gray-100 text-gray-800', ]; $statusLabels = [ 'completed' => 'Complété', 'pending' => 'En attente', 'failed' => 'Échoué', 'refunded' => 'Remboursé', ]; @endphp {{ $statusLabels[$transaction->status] ?? $transaction->status }} | Détails @if($transaction->status === 'completed') @endif |