@if(!empty($errorMessage))
{{ $errorMessage }}
@endif
@if(($escrows->count() ?? 0) === 0)
Aucune transaction securisee disponible pour le moment.
@else
@foreach($escrows as $escrow)
@php
$escrowId = (int) ($escrow->id ?? 0);
$escrowType = (string) ($escrow->escrowable_type ?? 'Transaction');
$escrowStatus = (string) ($escrow->status ?? 'inconnu');
$escrowAmount = (float) ($escrow->total_amount ?? ($escrow->amount ?? 0));
$escrowDeposit = (float) ($escrow->deposit_amount ?? 0);
$escrowCreatedAt = $escrow->created_at ?? null;
try {
$escrowCreatedLabel = $escrowCreatedAt
? \Carbon\Carbon::parse($escrowCreatedAt)->format('d/m/Y H:i')
: 'Date indisponible';
} catch (\Throwable $e) {
$escrowCreatedLabel = 'Date indisponible';
}
@endphp
#{{ $escrowId }} {{ $escrowType }}
Cree le {{ $escrowCreatedLabel }}
@if($escrowDeposit > 0)
• Caution {{ number_format($escrowDeposit, 2, ',', ' ') }} EUR
@endif
{{ $escrowStatus }}
{{ number_format($escrowAmount, 2, ',', ' ') }} EUR
@if($escrowId > 0)
@endif
@endforeach
@endif