@extends('layouts.app') @section('content') @php $offset = ($orders->currentPage() - 1) * $orders->perPage(); @endphp
@include('dashboard.crm.schedule.navigation')
@include('messages.alert')
@foreach ($orders as $index => $order) @endforeach
# ID Hora y fecha programada Fecha realizada Encargado Cliente
Técnico Status {{ __('buttons.actions') }}
{{ $offset + $index + 1 }} {{ $order->id }} {{ $order->start_time }} {{ $order->programmed_date }} {{ empty($order->completed_date) ? 'S/N' : $order->completed_date }} {{ $order->customer->user->name ?? 'S/A' }} {{ $order->customer->name }} @foreach ($order->technicians as $technician)
{{ $technician->user->name }}
@endforeach
{{ $order->status->name }} {{ __('buttons.show') }} @can('write_order') {{ __('buttons.edit') }} @endcan @if ($status == 3) Reporte @endif @if ($status == 5) {{-- Descargar --}} @endif
{{ $orders->links('pagination::bootstrap-5') }}
@endsection