@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
{{ __('Total Items') }}: {{ $cart_items ? $countitem : 0 }}
{{ __('Cart Total') }} : {{ $basicInfo->base_currency_symbol_position == 'left' ? $basicInfo->base_currency_symbol : '' }}
{{ $cartTotal }}
{{ $basicInfo->base_currency_symbol_position == 'right' ? $basicInfo->base_currency_symbol : '' }}
@endif
@if ($cart_items != null)
{{ __('Product') }}
{{ __('Quantity') }}
{{ __('Availability') }}
{{ __('Price') }}
{{ __('Total') }}
{{ __('Remove') }}
@foreach ($cart_items as $id => $item)
@php
$product = App\Models\ShopManagement\Product::where('id', $id)->first();
@endphp
{{ \Illuminate\Support\Str::limit($item['name'], 35, $end = '...') }}
@if ($product->type == 'digital')
{{ __('Available Now') }}
@else
@if ($product->stock >= $item['qty'])
{{ __('Available Now') }}
@else
{{ __('Out Of Stock Now') }}
@endif
@endif
{{ $basicInfo->base_currency_symbol_position == 'left' ? $basicInfo->base_currency_symbol : '' }}
{{ $item['price'] }}
{{ $basicInfo->base_currency_symbol_position == 'right' ? $basicInfo->base_currency_symbol : '' }}
{{ $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
@if ($cart_items == null)
{{ __('Cart is empty') . ' !' }}
@endif
@if ($cart_items != null)
@endif
@endsection
@section('script')
@endsection