@extends('seller.layouts.app') @section('panel_content')
@csrf
{{ translate('Loading..') }}
@php $userID = Session::has('pos.user_id') ? Session::get('pos.user_id') : null; @endphp
@php $subtotal = 0; $tax = 0; $carts = get_pos_user_cart(); @endphp @if (count($carts) > 0)
    @forelse ($carts as $key => $cartItem) @php $product = $cartItem->product; $stock = $cartItem->product->stocks->where('variant', $cartItem['variation'])->first(); $subtotal += $cartItem['price']*$cartItem['quantity']; $tax += $cartItem['tax']*$cartItem['quantity']; $cartID = $cartItem['id']; @endphp
  • {{ $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') {{-- Change Customer Confirmation Modal--}} {{-- Offline Payment Modal --}} @endsection @section('script') @endsection