Orders

@include('orders._tabs')
@if (request('q'))Reset@endif

Drag a card to another column to change its status.

@foreach (\App\Models\Order::STATUSES as $key => $label) @php $col = $orders[$key] ?? collect(); @endphp

{{ $label }}

{{ $col->count() }}
@foreach ($col as $o) @php $seen = $views[$o->id] ?? null; $changed = $o->last_other_change && (! $seen || \Illuminate\Support\Carbon::parse($o->last_other_change)->gt($seen)); $late = $o->handover_date->isBefore(today()) && $key !== 'ready'; @endphp
{{ $o->client }}
@if ($changed)New@endif
{{ $o->title }}
{{ number_format($o->quantity) }} {{ $o->handover_date->format('d.m.Y') }}
{{-- Touch screens cannot drag: offer a selector instead --}}
@endforeach

No orders

@endforeach
@include('orders._new-order-modal')