@extends('backend.layouts.app') @section('content') @csrf {{ translate('All Categories') }} @foreach (\App\Models\Category::all() as $key => $category) {{ $category->getTranslation('name') }} @endforeach {{ translate('All Brands') }} @foreach (\App\Models\Brand::all() as $key => $brand) {{ $brand->getTranslation('name') }} @endforeach {{ translate('Loading..') }} {{translate('Walk In Customer')}} @foreach ($customers as $key => $customer) {{ $customer->name }} @endforeach @php $subtotal = 0; $tax = 0; @endphp @if (Session::has('pos.cart')) @forelse (Session::get('pos.cart') as $key => $cartItem) @php $subtotal += $cartItem['price']*$cartItem['quantity']; $tax += $cartItem['tax']*$cartItem['quantity']; $stock = \App\Models\ProductStock::find($cartItem['stock_id']); @endphp {{ $stock->product->name }} {{ $cartItem['variant'] }} {{ single_price($cartItem['price']) }} x {{ $cartItem['quantity'] }} {{ single_price($cartItem['price']*$cartItem['quantity']) }} @empty {{ translate('No Product Added') }} @endforelse @else {{ translate('No Product Added') }} @endif {{translate('Sub Total')}} {{ single_price($subtotal) }} {{translate('Tax')}} {{ single_price($tax) }} {{translate('Shipping')}} {{ single_price(Session::get('pos.shipping', 0)) }} {{translate('Discount')}} {{ single_price(Session::get('pos.discount', 0)) }} {{translate('Total')}} {{ single_price($subtotal+$tax+Session::get('pos.shipping', 0) - Session::get('pos.discount', 0)) }} @endsection @section('modal')
{{ translate('No Product Added') }}