@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 @forelse ($orders as $index => $order) @php $technician = $order->technicians()->first(); @endphp @empty @endforelse
Reportes
# 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
{{ $orders->links('pagination::bootstrap-5') }} @elseif(!$initialLoad && $orders->isEmpty())
No se encontraron reportes con los filtros aplicados.
@else
Utiliza los filtros para buscar reportes.
@endif