@extends('ecommerce::frontend.layout.main') @section('title') {{trans('file.Cart')}} {{ $ecommerce_setting->site_title ?? '' }} @endsection @section('description') @endsection @section('content')
@if(session('total_qty') > 0)
@foreach($cart as $id => $cart_product) @php if($cart_product['variant'] != 0){ $variant = implode(' | ', $cart_product['variant']); $true_variant = implode(',', $cart_product['variant']); $id = $cart_product['id'].'-'.implode('-', $cart_product['variant']); }else{ $true_variant = 0; $variant = 0; $id = $cart_product['id']; } @endphp @endforeach
{{trans('file.product')}} {{trans('file.Price')}}
@if($cart_product['image']!==null) @php $images = explode(',', $cart_product['image']); $cart_product['image'] = $images[0]; @endphp @endif {{ $cart_product['name'] }}
{!! $cart_product['name'] !!} @if($variant != 0)({{$variant}})@endif
{{$currency->symbol ?? $currency->code}}{{ $cart_product['total_price'] }}

{{trans('file.Sub Total')}}: {{$currency->symbol ?? $currency->code}}{{ $subTotal ?? 0.00 }}

@else

{{trans('file.No item in your cart')}}

{{trans('file.Continue Shopping')}}
@endif
@endsection @section('script') @endsection