@extends('layouts.panel') @section('title', 'Pedidos') @section('content')
@forelse ($orders as $order) @empty @endforelse
Código Cliente Línea Peso Estado Retiro Acciones
{{ $order->order_code }} {{ $order->client->business_name ?: $order->client->contact_name }} {{ $order->serviceLineLabel() }} {{ $order->weight_kg ? number_format($order->weight_kg, 2) . ' kg' : '—' }} @php $statusColors = [ 'received' => 'secondary', 'washing' => 'info', 'drying' => 'info', 'folding' => 'warning', 'bagging' => 'warning', 'ready' => 'success', 'dispatched' => 'primary', ]; $color = $statusColors[$order->status] ?? 'secondary'; @endphp {{ $order->statusLabel() }} {{ $order->pickup_date?->format('d-m-Y') ?? '—' }}
@csrf @method('DELETE')
No hay pedidos registrados aún.
{{ $orders->links() }}
@endsection