@extends('layouts.app') @section('content')

Reporting & Dashboard

Total Links

{{ $totalLinks }}

Paid Links

{{ $paidLinks }}

Taux Conversion

{{ $conversionRate }}%

Total Collecté

{{ number_format($totalAmount,0,',',' ') }} XOF

@foreach($links as $link) @php $totalPayment = $link->payments->sum('amount'); $payment = $link->payments->first(); @endphp @php $statusColor = [ 'paid' => 'bg-green-100 text-green-800', 'pending' => 'bg-yellow-100 text-yellow-800', 'failed' => 'bg-red-100 text-red-800', ][$link->status->value] ?? 'bg-gray-100 text-gray-800'; @endphp @endforeach
Campagne Donateur Montant payé Statut Créé le Actions
{{ $link->campaign->name }} {{ $link->donateur->prenom }} {{ $link->donateur->nom }} {{ $totalPayment > 0 ? number_format($totalPayment,0,',',' ') : '-' }} {{ ucfirst($link->status->value) }} {{ $link->created_at->format('d/m/Y') }} Détails
@endsection