{{ $quote['title'] ?? 'Devis' }} #{{ $quote['id'] ?? '' }}
@php $status = $quote['status'] ?? 'pending'; @endphp @switch($status) @case('pending') En attente @break @case('uploaded') Uploadé @break @case('approved') Approuvé @break @case('rejected') Rejeté @break @default {{ ucfirst($status) }} @break @endswitch
{{ $quote['client_name'] ?? 'Client inconnu' }}
@if(!empty($quote['description']))
{{ $quote['description'] }}
@endif
@if(isset($quote['amount'])) {{ number_format((float)$quote['amount'], 2, ',', ' ') }} @endif @if(!empty($quote['valid_until'])) Valide jusqu'au {{ \Carbon\Carbon::parse($quote['valid_until'])->format('d/m/Y') }} @endif @if(!empty($quote['priority'])) {{ ucfirst($quote['priority']) }} @endif @if(!empty($quote['requested_by'])) {{ $quote['requested_by'] }} @endif
@if(!empty($quote['documents']) && is_array($quote['documents']))
@foreach($quote['documents'] as $doc) {{ $doc }} @endforeach
@endif @if(!empty($quote['comments']) && is_array($quote['comments'])) @endif