@if (Session::has('cart')) @php $discount = 0; @endphp
@foreach ($products as $product) @php if ($product['discount'] != 0) { $total_itemprice = $product['item_price'] * $product['qty']; $tdiscount = ($total_itemprice * $product['discount']) / 100; $discount += $tdiscount; } @endphp @if ($product['item']['type'] == 'Physical') @else @endif @if ($product['size_qty']) @elseif($product['item']['type'] != 'Physical') @else @endif @endforeach
@lang('Product Name') @lang('Price') @lang('Quantity') @lang('Subtotal') @lang('Action')
{{ mb_strlen($product['item']['name'], 'UTF-8') > 35 ? mb_substr($product['item']['name'], 0, 35, 'UTF-8') . '...' : $product['item']['name'] }}
@if (!empty($product['color'])) @lang('Color') :

@endif @if (!empty($product['size'])) @lang('Size') :

{{ $product['size'] }}

@endif
{{ App\Models\Product::convertPrice($product['item_price']) }}
1 {{ App\Models\Product::convertPrice($product['price']) }} @if ($product['discount'] != 0) {{ $product['discount'] }} %{{ __('off') }} @endif

@lang('Cart Summary')

@lang('Subtotal')({{ count(Session::get('cart')->items) }} @lang('Items'))

{{ Session::has('cart') ? App\Models\Product::convertPrice($totalPrice + $discount) : '0.00' }}

@lang('Discount')

{{ App\Models\Product::convertPrice($discount) }}

@lang('Total')

{{ Session::has('cart') ? App\Models\Product::convertPrice($mainTotal) : '0.00' }}

@else

{{ __('Cart is Empty!! Add some products in your Cart') }}

@endif