@php
$cart_items = Session::get('cart');
@endphp
@if ($cart_items != null)
@php
$cartTotal = 0;
$countitem = 0;
if ($cart_items) {
foreach ($cart_items as $p) {
$cartTotal += $p['price'] * $p['qty'];
$countitem += $p['qty'];
}
}
@endphp
@endif
@if ($cart_items != null)
{{ __('Product') }}
{{ __('Quantity') }}
{{ __('Total') }}
@foreach ($cart_items as $id => $item)
@php
$product = App\Models\ShopManagement\Product::where('id', $id)->first();
@endphp
{{ \Illuminate\Support\Str::limit($item['name'], 20, $end = '...') }}
{{ $item['qty'] }}
{{ $basicInfo->base_currency_symbol_position == 'left' ? $basicInfo->base_currency_symbol : '' }}
{{ $item['qty'] * $item['price'] }}
{{ $basicInfo->base_currency_symbol_position == 'right' ? $basicInfo->base_currency_symbol : '' }}
@endforeach
@endif