{{-- Left Side: Products --}}
@if(!empty($searchProduct)) @endif
@if($products->isEmpty())
Produk tidak ditemukan
@else
@foreach($products as $prod)
{{ $prod->name }}
Rp {{ number_format($prod->price, 0, ',', '.') }}
@if($prod->type === 'product')
Stok: {{ $prod->stock }}
@else
Jasa
@endif
@endforeach
@endif
{{-- Right Side: Cart / Checkout --}}
Keranjang
{{ count($cart) }} Item
@if(count($cart) > 0) @endif
@if(empty($cart))
Keranjang kosong
@else
@foreach($cart as $index => $item)
{{ $item['name'] }}
@if(!empty($item['is_custom']) || empty($item['product_id'])) Manual @endif
x Rp {{ number_format($item['subtotal'], 0, ',', '.') }}
@endforeach
@endif
{{-- Notifikasi Menu Transaksi Nonaktif saat Keranjang Kosong --}} @if(empty($cart))
Menu Transaksi Dinonaktifkan
Tambahkan produk ke keranjang terlebih dahulu untuk mengaktifkan data pelanggan & pembayaran.
@endif
{{-- Customer Selection --}}
@if($customerId)
{{ $customerName }}
{{ $customerPhone }}
@else
@if(strlen($searchCustomer) > 0)
@forelse($this->filteredCustomers as $idx => $c) @empty
Pelanggan tidak ditemukan.
@endforelse
@endif
@endif
{{-- Summary --}}
Subtotal Rp {{ number_format($this->subtotal, 0, ',', '.') }}
Diskon (Rp / %)
Rp
%
TOTAL Rp {{ number_format($this->grandTotal, 0, ',', '.') }}
{{-- Payment --}}
Terima Rp
@if($this->changeAmount > 0)
Kembali: Rp {{ number_format($this->changeAmount, 0, ',', '.') }}
@endif
{{-- Estimasi Selesai / Deadline --}}
@if(!empty($deadline)) @endif
{{-- Manual Picker: Hari/Tanggal + Jam + Tombol Picker Interaktif --}}
{{-- Picker Hari/Tanggal Manual --}}
{{-- Picker Jam Manual --}}
{{-- Tombol Buka Picker Dialog Manual --}}
{{-- Status Tenggat Waktu Terpilih --}} @if(!empty($deadline))
{{ \Carbon\Carbon::parse($deadline)->format('d/m/Y - H:i') }}
{{ \Carbon\Carbon::parse($deadline)->diffForHumans() }}
@endif {{-- Tombol Cepat (Presets) --}}
@forelse($deadlinePresets as $idx => $preset) @empty @endforelse
@if(empty($cart)) @elseif(empty(trim($customerName)) || empty(trim($customerPhone)))
Isi Nama & No WA untuk memproses.
@else @endif
{{-- Modal Tambah Item Manual / Kustom --}} @if($showCustomItemModal) @endif {{-- Modal Atur Tombol Cepat Deadline --}} @if($showDeadlinePresetModal) @endif {{-- Modal Picker Tanggal & Jam Manual --}} @if($showManualPickerModal) @endif @script @endscript