@php $pageConfigs = ['navbarType' => 'sticky', 'contentLayout' => 'wide']; $configData = Helper::appClasses(); $statusMap = [ 'pending' => ['Pendiente', 'warning'], 'confirmed' => ['Confirmado', 'info'], 'at_restaurant' => ['En restaurante', 'primary'], 'en_route' => ['En camino', 'secondary'], 'delivered' => ['Entregado', 'success'], 'cancelled' => ['Cancelado', 'danger'], ]; $counts = $counts ?? [ 'total' => 0, 'pending' => 0, 'confirmed' => 0, 'at_restaurant' => 0, 'en_route' => 0, 'delivered' => 0 ]; @endphp @extends('layouts/layoutMaster') @section('title', 'Ordenes') @section('vendor-style') @vite([ 'resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss' ]) @endsection @section('vendor-script') @vite([ 'resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', 'resources/assets/vendor/libs/cleave-zen/cleave-zen.js' ]) @endsection @section('page-script') @endsection @section('content')
Total

{{ $counts['total'] }}

Ordenes registradas
Pendientes

{{ $counts['pending'] }}

Sin asignar
Confirmados

{{ $counts['confirmed'] }}

Asignados
Entregados

{{ $counts['delivered'] }}

Finalizados
Filtros
Limpiar
@forelse ($deliveries as $delivery) @php [$statusLabel, $statusColor] = $statusMap[$delivery->status] ?? ['Pendiente', 'warning']; @endphp @empty @endforelse
# Cliente Teléfono Dirección Tipo Estado Fecha Acciones
#{{ $delivery->id }} {{ $delivery->customer_name }} {{ $delivery->customer_phone ?: 'Sin teléfono' }} {{ $delivery->delivery_address }} @if ($delivery->delivery_address_extra)
{{ $delivery->delivery_address_extra }}
@endif
@if ($delivery->is_urgent) Urgente @else Normal @endif {{ $statusLabel }} {{ $delivery->created_at->format('d/m/Y H:i') }}
No hay ordenes para este filtro.
Detalle de orden
-
-
-
-
Dirección
-
Restaurante
-
Repartidor
-
Fecha
-
Notas
-
@endsection