@extends('layouts.app') @section('main')
{{--
Sales Invoice
Invoice #INV-2024-001
--}} {{--
Cashier: abay
--}} {{--
--}}
@if($all_settings && $all_settings->pos_price_type && $all_settings->pos_price_value)
POS Pricing Active: {{ ucfirst($all_settings->pos_price_type) }} markup of @if($all_settings->pos_price_type === 'percentage') {{ $all_settings->pos_price_value }}% @else {{ $all_settings->currency ?? 'BDT' }} {{ $all_settings->pos_price_value }} @endif applied to all products. Adjust Settings
@endif
Product Stock Qty Price Subtotal Action
Tip: Single click to set custom price | Double click to add with default price
@foreach ($products as $product) @php // Calculate POS price based on settings $basePrice = $product->buy_price; $posPrice = $basePrice; if ($all_settings && $all_settings->pos_price_type && $all_settings->pos_price_value) { if ($all_settings->pos_price_type === 'percentage') { $posPrice = $basePrice + ($basePrice * ($all_settings->pos_price_value / 100)); } elseif ($all_settings->pos_price_type === 'fixed') { $posPrice = $basePrice + $all_settings->pos_price_value; } } @endphp
{{ $product->name }}
{{ $product->name }}
Stock: {{ $product->stock }}
{{ $all_settings->currency ?? 'BDT' }} {{ number_format($posPrice, 2) }} @if($posPrice != $basePrice) Base: {{ $all_settings->currency ?? 'BDT' }} {{ number_format($basePrice, 2) }} @endif
@endforeach
TOTAL ITEMS
0
TOTAL AMOUNT
0.00
TOTAL DISCOUNT
0.00
GRAND TOTAL
0.00
@csrf
@endsection