@extends('backend.layouts.app') @section('content') @csrf {{ translate('All Sellers') }} @foreach (\App\Models\Shop::with('user')->get() as $key => $shop) @if($shop->user) {{ $shop->name }} @endif @endforeach {{ 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) @if ($customer->is_virtual_user == 1) ({{translate('Virtual')}})@endif {{ $customer->name }} @if($customer->is_virtual == 1) ({{translate('Virtual')}}) @endif @endforeach @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')
{{ translate('No Product Added') }}