@extends('backend.layouts.app') @section('content')
@csrf
{{ translate('Loading..') }}
@php $subtotal = 0; $tax = 0; /*if (Session::has('pos.cart')){ dd(Session::get('pos.cart')); }*/ @endphp @if (Session::has('pos.cart'))
    @forelse (Session::get('pos.cart') as $key => $cartItem) @php $stock = \App\Models\ProductStock::find($cartItem['stock_id']); if ($stock){ $subtotal += $cartItem['price']*$cartItem['quantity']; $tax += $cartItem['tax']*$cartItem['quantity']; } @endphp @if ($stock)
  • {{ $stock->product->name }}
    {{ $cartItem['variant'] }}
    {{ single_price($cartItem['price']) }} x {{ $cartItem['quantity'] }}
    {{ single_price($cartItem['price']*$cartItem['quantity']) }}
  • @endif @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') {{-- Offline Payment Modal --}} @endsection @section('script') @endsection