@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')
Scan, add products, and process transactions
Click on a product to add it to cart
Mode toko biasa untuk transaksi langsung.
Input voucher di sini. Diskon otomatis dari menu akan diterapkan sendiri bila item cocok.
Pilih jenis pajak dulu, lalu atur tarif dan bebannya.
`Global` memakai satu tarif untuk semua item. `Per Item` menampilkan input tarif di tiap produk.