@forelse($quotes as $q)
@php
$count = $itemsCountByQuote[$q->id] ?? 1;
$previewItems = $itemsPreviewByQuote[$q->id] ?? collect();
$isApproved = ($q->status === 'aprobada');
@endphp
| {{ $q->quote_number }} |
{{ $q->client_name }}
@if(!empty($q->rif_display))
RIF: {{ $q->rif_display }}
@endif
@if($q->client_phone)
{{ $q->client_phone }}
@endif
|
{{ $count }} mueble(s)
@if($previewItems->isNotEmpty())
{{ $previewItems->pluck('item_label')->implode(', ') }}
@endif
|
{{ $sym }}{{ number_format($q->total_amount, 2) }} |
@if($isApproved)
Aprobada
@else
@endif
|
|
@empty
| Aún no hay cotizaciones registradas. |
@endforelse