@extends('frontend::layouts.master') @section('title') {{ $seo?->title }} @endsection @push('style') @endpush @section('content')
@if ($carts->isEmpty())

{{ trans('frontend::translate.Your cart is empty') }}

{{ trans('frontend::translate.Add some products to get started!') }}

{{ trans('frontend::translate.Continue Shopping') }}
@else
@php $subtotal = 0; @endphp @foreach ($carts as $cart) @php $itemTotal = $cart->cartable ? $cart->cartable->getCurrentPrice() * $cart->quantity : 0; $subtotal += $itemTotal; @endphp @endforeach
{{ __('frontend::translate.Product') }} {{ __('frontend::translate.Price') }} {{ __('frontend::translate.Quantity') }} {{ __('frontend::translate.Subtotal') }} {{ __('frontend::translate.Remove') }}
{{ $cart->cartable->title }} {{ Str::limit($cart->cartable?->title, 35) }} {!! $cart->cartable->getDisplayPrice() !!}
{{ exchangeAmount($itemTotal) }}
  • {{ __('frontend::translate.Subtotal') }} {{ exchangeAmount($subtotal) }}
  • {{ __('frontend::translate.Total') }} {{ exchangeAmount($subtotal) }}
@endif
@endsection @push('script') @endpush