@extends('layouts.admin-modern') @section('title', 'Gestion Paiements') @section('content')
{{-- En-tĂŞte --}}

đź’ł Gestion des Paiements

Monitoring des transactions et revenus

Analytics
{{-- Statistiques globales --}}

Revenus totaux

{{ number_format($totalRevenue ?? 0, 2) }} €

Transactions

{{ $transactionsCount ?? 0 }}

En attente

{{ number_format($pendingAmount ?? 0, 2) }} €

Commissions

{{ number_format($totalCommissions ?? 0, 2) }} €

Remboursements

{{ number_format($refundedAmount ?? 0, 2) }} €

{{-- Filtres --}}
{{-- Tableau des transactions --}}

Toutes les transactions

@if(isset($transactions) && $transactions->count() > 0)
@foreach($transactions as $transaction) @endforeach
ID Date Client Prestataire Montant Commission Statut Actions
#{{ $transaction->id }} {{ $transaction->created_at->format('d/m/Y H:i') }} {{ $transaction->booking->client->user->name ?? 'N/A' }} {{ $transaction->booking->service->prestataire->user->name ?? 'N/A' }} {{ number_format($transaction->amount, 2) }} € {{ number_format($transaction->commission ?? 0, 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', ]; @endphp {{ ucfirst($transaction->status) }}
@if($transaction->status === 'paid' || $transaction->status === 'completed')
@csrf
@endif
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif @else

Aucune transaction

Aucune transaction n'a été effectuée pour le moment.

@endif
{{-- Modal Détails Transaction --}} @push('scripts') @endpush @endsection