@extends('layouts.app') @push('styles') @endpush @section('content') @php $escrowType = $escrow->escrowable_type ?? ''; $isUrgentSale = str_contains($escrowType, 'UrgentSale'); $isBooking = str_contains($escrowType, 'Booking'); $isEquipment = str_contains($escrowType, 'Equipment'); $totalAmount = (float)($escrow->total_amount ?? $escrow->amount ?? 0); $depositAmount = (float)($escrow->deposit_amount ?? 0); $escrowMetaTop = []; try { $escrowMetaTop = !empty($escrow->metadata) ? (json_decode((string)$escrow->metadata, true) ?: []) : []; } catch (\Throwable $e) { $escrowMetaTop = []; } if ($depositAmount <= 0) { $depositAmount = (float)($escrowMetaTop['deposit_amount'] ?? ($escrowMetaTop['security_deposit'] ?? 0)); } if ($depositAmount <= 0 && isset($relatedItem) && is_object($relatedItem) && property_exists($relatedItem, 'security_deposit')) { $depositAmount = (float)($relatedItem->security_deposit ?? 0); } $urgentSaleProduct = $urgentSaleProduct ?? null; $fmtDt = function($v) { try { return $v ? \Carbon\Carbon::parse($v)->format('d/m/Y à H:i') : '—'; } catch(\Throwable $e) { return '—'; } }; $fmtD = function($v) { try { return $v ? \Carbon\Carbon::parse($v)->format('d/m/Y') : '—'; } catch(\Throwable $e) { return '—'; } }; $fmtDiff = function($v) { try { return $v ? \Carbon\Carbon::parse($v)->diffForHumans() : '—'; } catch(\Throwable $e) { return '—'; } }; @endphp
Détails de votre paiement sécurisé
Paiement reçu et bloqué
{{ $fmtDt($escrow->created_at) }}
Vous avez confirmé
{{ $fmtDt($escrow->client_confirmed_at) }}
@elseif($escrow->status === 'pending')En attente de votre confirmation
@if($escrow->auto_release_at)Libération auto {{ $fmtDiff($escrow->auto_release_at) }}
@endif @elseConfirmation client
@endifPaiement libéré
{{ $fmtDt($escrow->released_at) }}
@elseLibération du paiement
@endifDescription
{{ $dispute->description }}
Preuves
La plateforme enregistre le dossier. Elle ne prend parti de personne.