@extends('backEnd.layouts.master') @section('title','Point of Sale') @section('css') @endsection @section('content')
{{-- TOP BAR --}}

Point of Sale

@csrf
{{-- ================= LEFT COLUMN ================= --}}
{{-- POS HEADER STRIP --}}
Shop Store
Walk-in Customer POS
Session
SL-{{ date('dmy-His') }}
{{-- CART TABLE --}}
@include('backEnd.order.cart_table_rows')
Image Item Qty Price Subtotal
{{-- COUPON SECTION --}}
কুপন কোড
{{-- CUSTOMER + TOTAL --}}
@csrf {{-- CUSTOMER --}}
Customer
@error('name'){{ $message }}@enderror
@error('phone'){{ $message }}@enderror
@error('address'){{ $message }}@enderror
@error('area'){{ $message }}@enderror
{{-- SUMMARY --}}
Summary
@php $subtotal = Cart::instance('pos_shopping')->subtotal(); $subtotal = str_replace(',','',$subtotal); $subtotal = str_replace('.00', '',$subtotal); $shipping = Session::get('pos_shipping'); $couponDiscount = Session::get('pos_discount', 0); $grand = ($subtotal + $shipping) - $couponDiscount; @endphp
Sub Total ৳{{$subtotal}}
Shipping Fee ৳{{$shipping}}
কুপন ডিস্কাউন্ট ৳{{$couponDiscount}}
Grand Total ৳{{$grand}}
{{-- ================= RIGHT COLUMN – PRODUCT LIST ================= --}}
{{-- SEARCH BAR --}}
Products
@foreach($products as $p) @php $img = optional($p->image)->image ?? 'public/no-image.png'; @endphp
Stock: {{ $p->stock}}
{{ $p->name }}
TK {{ $p->new_price ?? $p->old_price }}
@endforeach
@endsection @section('script') @endsection