@if (!$initialLoad && $orders->isNotEmpty()) @php function getFolioNumber($folio) { $partes = explode('-', $folio); if (count($partes) > 1) { return (int)$partes[1]; // Retorna el número como entero } return null; // Si no hay guion, retorna null } $offset = ($orders->currentPage() - 1) * $orders->perPage(); @endphp
# | No | Fecha | Hora | Línea de negocio | Técnico | Servicio(s) | Firmado por | {{ __('buttons.actions') }} | |
---|---|---|---|---|---|---|---|---|---|
{{ $offset + $index + 1 }} | {{ getFolioNumber($order->folio) }} | {{ Carbon\Carbon::parse($order->programmed_date)->format('d-m-Y') }} | {{ $order->start_time }} | @foreach ($order->services as $service) {{ $service->businessLine->name }} @endforeach | {{ $technician->user->name ?? 'S/A' }} | {{ implode(', ', $order->services->pluck('name')->toArray()) }} | {{ $order->signature_name ?? '-' }} | {{ __('buttons.file') }} | |
Sin coincidencias |