{{-- Sidebar Navigation --}} {{-- Main Content --}}

{{ $storeName }}

{{ now()->translatedFormat('l, d M Y') }}

barcode_scanner
{{-- Mobile user avatar --}}
{{ substr(auth()->user()->name, 0, 1) }}

{{ auth()->user()->name }}

{{ auth()->user()->email }}

dashboard Admin Panel
@csrf
{{-- Category Pills (swipeable, pinned below header) --}}
@foreach($categories as $category) @endforeach
{{-- Product Grid --}}
@forelse($products as $product)
@if($product->available_stock <= 0)
HABIS
@endif

{{ $product->name }}

Stok: {{ $product->available_stock }}

Tambah ke Keranjang
@empty
search_off

Tidak ada produk ditemukan

@endforelse @if($products->count() >= $perPage)
@endif
{{-- Mobile Cart FAB --}}
{{-- Cart Panel --}} {{-- ==================== MODALS ==================== --}} {{-- Checkout Modal --}} @if($showCheckoutModal)

Pembayaran

Total Tagihan

Rp {{ number_format($total, 0, ',', '.') }}

@foreach(['cash' => 'Tunai', 'qris' => 'QRIS', 'transfer' => 'Transfer'] as $key => $label) @endforeach
@if($paymentMethod === 'cash')
@php $suggestions = [20000, 50000, 100000]; @endphp @foreach($suggestions as $amt) @endforeach
@if($amountPaid >= $total)
Kembalian Rp {{ number_format($change, 0, ',', '.') }}
@endif
@endif
@endif {{-- Discount Modal --}} @if($showDiscountModal)

Tambah Diskon

@endif {{-- Profile Modal --}} @if($showProfileModal)

Pengaturan Profil

@error('profileName') {{ $message }} @enderror
@error('profileEmail') {{ $message }} @enderror

Kosongkan jika tidak ingin mengubah password

@error('profilePassword') {{ $message }} @enderror
@endif {{-- Customer Modal --}} @if($showCustomerModal)

Pilih Pelanggan

@forelse($customers as $customer)

{{ $customer->name }}

{{ $customer->phone ?? '-' }} • {{ $customer->email ?? '-' }}

@empty
@if(strlen($customerSearch) > 0) Tidak ada pelanggan ditemukan. @else Ketik untuk mencari pelanggan. @endif
@endforelse
@endif {{-- Scripts --}}