@extends('layouts.admin-modern') @section('title', 'Tableau de bord financier') @section('page-title', 'Finance') @section('content')
Vue d'ensemble des finances de la plateforme
Revenu total
{{ number_format($stats['total_revenue'] ?? 0, 2) }} €
Aujourd'hui
{{ number_format($stats['revenue_today'] ?? 0, 2) }} €
Ce mois
{{ number_format($stats['revenue_month'] ?? 0, 2) }} €
Commissions
{{ number_format($stats['total_commissions'] ?? 0, 2) }} €
Retraits en attente
{{ number_format($stats['pending_withdrawals'] ?? 0, 2) }} €
Remboursements en attente
{{ number_format($stats['pending_refunds'] ?? 0, 2) }} €
Solde prestataires
{{ number_format($stats['total_prestataires_balance'] ?? 0, 2) }} €
| Référence | Utilisateur | Montant | Type | Statut | Date |
|---|---|---|---|---|---|
| {{ $transaction->reference ?? 'N/A' }} | {{ $transaction->user_name ?? 'N/A' }} | {{ number_format($transaction->amount ?? 0, 2) }} € | {{ ucfirst($transaction->type ?? 'N/A') }} | @php $statusColors = [ 'pending' => 'yellow', 'completed' => 'green', 'failed' => 'red', 'cancelled' => 'gray' ]; $color = $statusColors[$transaction->status ?? ''] ?? 'gray'; @endphp {{ ucfirst($transaction->status ?? 'N/A') }} | {{ \Carbon\Carbon::parse($transaction->created_at)->format('d/m/Y H:i') }} |
| Aucune transaction récente | |||||