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

Détails du lien pour {{ $link->donateur->prenom }} {{ $link->donateur->nom }}

{{-- Informations du lien --}}

Campagne : {{ $link->campaign->name }}

Token : {{ $link->token }}

Statut : {{ ucfirst($link->status->value) }}

{{-- Boutons ouverture & copie --}}
{{-- Tableau des transactions --}}

Transactions associées

@if($link->payments->isEmpty())

Aucune transaction enregistrée pour ce lien.

@else
@foreach($link->payments as $payment) @endforeach
Date Montant Devise Statut
{{ optional($payment->created_at ?? $payment->created_at)->format('d/m/Y H:i') }} {{ number_format($payment->amount, 0, ',', ' ') }} {{ strtoupper($payment->currency) }} @php $statusColor = [ 'approved' => 'bg-green-100 text-green-800', 'declined' => 'bg-red-100 text-red-800', 'canceled' => 'bg-gray-100 text-gray-800', 'pending' => 'bg-yellow-100 text-yellow-800', ][$payment->status->value] ?? 'bg-gray-100 text-gray-800'; @endphp {{ ucfirst($payment->status->value) }}
@endif
← Retour

Enregistrer une transaction

@csrf
@endsection