@extends('layouts.app') @section('scripts') @php $settings = \App\Models\Setting::getStoreSettings(); $activeBranchId = session('active_branch_id'); if ($activeBranchId) { $branch = \App\Models\Branch::find($activeBranchId); if ($branch) { $settings['store_name'] = $branch->name; $settings['store_address'] = $branch->address; $settings['store_phone'] = $branch->phone; } } $discountRulesPayload = $activeDiscountRules->map(function ($rule) { return [ 'id' => $rule->id, 'name' => $rule->name, 'discount_type' => $rule->discount_type, 'discount_value' => (float) $rule->discount_value, 'applies_to' => $rule->applies_to, 'product_ids' => $rule->products->pluck('id')->values()->all(), 'priority' => (int) $rule->priority, ]; })->values()->all(); $vouchersPayload = $activeVouchers->map(function ($voucher) { return [ 'id' => $voucher->id, 'code' => $voucher->code, 'name' => $voucher->name, 'discount_type' => $voucher->discount_type, 'discount_value' => (float) $voucher->discount_value, 'applies_to' => $voucher->applies_to, 'product_ids' => $voucher->products->pluck('id')->values()->all(), 'min_purchase' => (float) $voucher->min_purchase, ]; })->values()->all(); @endphp @endsection @section('content')

๐Ÿ›’ Point of Sale

Scan, add products, and process transactions

@if($storeSettings->enable_online_store ?? true) @endif @if($storeSettings->enable_marketplace ?? true) @endif
@if(auth()->user()->role === 'kasir' && ($storeSettings->enable_cashier_shift ?? true)) @if($activeCashierShift) Tutup Shift @endif @endif
{{-- Products Section (Left Side) --}}
{{-- Search Area --}}
{{-- Category Tabs --}}
{{-- Products Grid --}}

Products

Click on a product to add it to cart

{{-- Products will be loaded here by JavaScript --}}
{{-- Pagination --}}
per page
{{-- Cart Section (Right Side) --}}

Shopping Cart

Mode toko biasa untuk transaksi langsung.

{{-- Cart items will be populated here --}}
@if($storeSettings->enable_vouchers ?? true)
Voucher

Input voucher di sini. Diskon otomatis dari menu akan diterapkan sendiri bila item cocok.

Kode Voucher
Kosongkan bila tidak memakai voucher.
@endif
Pengaturan Pajak

Pilih jenis pajak dulu, lalu atur tarif dan bebannya.

@if($storeSettings->enable_marketplace ?? true) @endif
PPN (%)
Beban PPN
@if($storeSettings->enable_marketplace ?? true) @endif
Subtotal Rp 0
Pajak Marketplace Rp 0
Diskon - Rp 0
PPN Rp 0
Total Pajak + Rp 0
Total Rp 0
{{-- ================================= MODALS ================================= --}} {{-- Modal untuk Barcode Scanner --}} {{-- Modal Pilihan Varian --}} {{-- Modal Pembayaran --}} {{-- Modal Sukses --}} {{-- Modal Custom Product (Dimensions) --}} {{-- ================================= SCRIPT ================================= --}} @endsection