{{-- Kasir Dashboard (Fokus: SIAP DIAMBIL) --}} @php $readyTotal = 0; if (isset($ready_for_pickup_orders)) { $readyTotal = method_exists($ready_for_pickup_orders, 'total') ? (int) $ready_for_pickup_orders->total() : (int) collect($ready_for_pickup_orders)->count(); } @endphp {{-- ===== Banner ===== --}}
Kasir Mode

✅ Prioritas utama: Infokan ke costumer — pastikan order yang selesai cepat diambil customer.

Tips: Klik invoice untuk cek detail. Gunakan tombol WA untuk mengabari customer.

{{-- ===== PRIORITY SECTION: SIAP DIAMBIL ===== --}}

Siap Diambil {{ $readyTotal }} Order

Order yang sudah selesai dan menunggu pengambilan. (Ini yang paling penting.)

@if(request('pickup_search')) @endif
@forelse($ready_for_pickup_orders ?? [] as $order) @php $waRaw = $order->wa_notified_at ?? null; $waSent = !is_null($waRaw) && $waRaw !== '' && $waRaw !== '0000-00-00 00:00:00'; $notifyUrl = route('orders.notify-wa', $order); @endphp @empty @endforelse
Invoice Pelanggan Order Selesai Aksi
{{ $order->invoice_number }}
READY TERKIRIM
{{ $order->customer_name }} {{ $order->created_at?->format('d M H:i') ?? '-' }} {{ $order->finished_at?->format('d M H:i') ?? '-' }}
@if($order->customer_phone) @if($waSent) TERKIRIM @else WA @endif @endif

@if(request('pickup_search')) Tidak ada order siap diambil untuk pencarian “{{ request('pickup_search') }}” @else Tidak ada order yang siap diambil @endif

Kalau kosong, berarti aman. ✅

@if(isset($ready_for_pickup_orders) && method_exists($ready_for_pickup_orders, 'hasPages') && $ready_for_pickup_orders->hasPages())
{{ $ready_for_pickup_orders->appends(['pickup_search' => request('pickup_search')])->links() }}
@endif
{{-- JS: klik WA -> instant UI (tanpa refresh) + buka notify di tab baru --}} {{-- Footer --}}

© 2026 aplikasipercetakan.com. All rights reserved.

@once @includeIf('partials.attendance-popup') @endonce {{-- Confirmation Modal: diletakkan di luar section/dashboard --}}