@php $items = $items ?? collect(); $showDevice = $showDevice ?? false; @endphp
@forelse($items as $item)
{{ $item['type'] === 'service' ? 'πŸ”§' : ($item['type'] === 'delivery' ? 'πŸ“¦' : ($item['type'] === 'quotation' ? 'πŸ“„' : 'πŸ“‹')) }} @if(!$loop->last)
@endif

@if($item['type'] === 'service') Servicio #{{ $item['model']->id }} @elseif($item['type'] === 'delivery') Remito {{ $item['model']->number }} @elseif($item['type'] === 'quotation') Presupuesto {{ $item['model']->number }} @else {{ $item['model']->title }} @endif

{{ $item['date']->format('d/m/Y H:i') }} @if($showDevice) @php $deviceLabel = $item['model']->device ?? $item['model']->service?->device ?? null; @endphp @if($deviceLabel) Β· {{ $deviceLabel->model_and_serial ?? 'Equipo' }} @endif @endif @if($item['type'] === 'service') β€” {{ ucfirst(str_replace('_', ' ', $item['model']->status ?? '')) }} @elseif($item['type'] === 'quotation') β€” {{ ucfirst($item['model']->status ?? '') }} @elseif($item['type'] === 'delivery') @if($item['model']->delivered_to) β€” Entregado a {{ $item['model']->delivered_to }} @endif @else β€” {{ ucfirst($item['model']->priority ?? '') }} @endif

@if($item['type'] === 'service' && !empty($item['model']->summary))

{{ \Str::limit($item['model']->summary, 80) }}

@elseif($item['type'] === 'delivery' && ($item['model']->service ?? null))

Vinculado a Servicio #{{ $item['model']->service_id }}

@endif
β†—
@empty

Sin servicios, envΓ­os, presupuestos ni reclamos registrados.

@endforelse