@extends('layouts.app') @section('title', 'Mes Revenus') @section('content')
Suivez vos revenus et paiements
Total gagné
{{ number_format($stats['total_earned'] ?? 0, 2) }} €
Ce mois
{{ number_format($stats['this_month'] ?? 0, 2) }} €
En attente
{{ $stats['pending_payments'] ?? 0 }}
Transactions
{{ $transactions->total() ?? 0 }}
Graphique des revenus (6 derniers mois)
| Date | Client | Service | Montant | Commission | Net | Statut |
|---|---|---|---|---|---|---|
| {{ $transaction->created_at->format('d/m/Y') }} | {{ $transaction->booking->client->user->name ?? 'N/A' }} | {{ $transaction->booking->service->title ?? 'Service' }} | {{ number_format($transaction->amount, 2) }} € | -{{ number_format($transaction->commission ?? 0, 2) }} € | {{ number_format($transaction->net_amount ?? $transaction->amount, 2) }} € | @php $statusClasses = [ 'completed' => 'bg-green-100 text-green-800', 'pending' => 'bg-yellow-100 text-yellow-800', 'processing' => 'bg-blue-100 text-blue-800', ]; @endphp {{ ucfirst($transaction->status) }} |
Vous n'avez pas encore reçu de paiements.