@extends(getTemplate().'.layouts.app') @section('content')

{{ trans('cart.shopping_cart') }}

{{ handlePrice($subTotal, true, true, false, null, true) . ' ' . trans('cart.for_items',['count' => $carts->count()]) }}
@if(!empty($totalCashbackAmount))
{{ trans('update.get_cashback') }}
{{ trans('update.by_purchasing_this_cart_you_will_get_amount_as_cashback',['amount' => handlePrice($totalCashbackAmount)]) }}
@endif

{{ trans('cart.cart_items') }}

@if($carts->count() > 0)
{{ trans('cart.item') }}
{{ trans('public.price') }}
{{ trans('public.remove') }}
@endif @foreach($carts as $cart)
@php $cartItemInfo = $cart->getItemInfo(); $cartTaxType = !empty($cartItemInfo['isProduct']) ? 'store' : 'general'; @endphp user avatar

{{ $cartItemInfo['title'] }}

@if(!empty($cart->gift_id) and !empty($cart->gift)) {!! trans('update.a_gift_for_name_on_date',['name' => $cart->gift->name, 'date' => (!empty($cart->gift->date) ? dateTimeFormat($cart->gift->date, 'j M Y H:i') : trans('update.instantly'))]) !!} @endif
@if(!empty($cart->reserve_meeting_id))
{{ $cart->reserveMeeting->day .' '. $cart->reserveMeeting->meetingTime->time }} ({{ $cart->reserveMeeting->meeting->getTimezone() }})
@if($cart->reserveMeeting->meeting->getTimezone() != getTimezone())
{{ $cart->reserveMeeting->day .' '. dateTimeFormat($cart->reserveMeeting->start_at,'h:iA',false).'-'.dateTimeFormat($cart->reserveMeeting->end_at,'h:iA',false) }} ({{ getTimezone() }})
@endif @endif @if(!empty($cartItemInfo['profileUrl']) and !empty($cartItemInfo['teacherName'])) {{ trans('public.by') }} {{ $cartItemInfo['teacherName'] }} @endif @if(!empty($cartItemInfo['extraHint'])) {{ $cartItemInfo['extraHint'] }} @endif @if(!is_null($cartItemInfo['rate'])) @include('web.default.includes.webinar.rate',['rate' => $cartItemInfo['rate']]) @endif
{{ trans('public.price') }} : @if(!empty($cartItemInfo['discountPrice'])) {{ handlePrice($cartItemInfo['price'], true, true, false, null, true, $cartTaxType) }} {{ handlePrice($cartItemInfo['discountPrice'], true, true, false, null, true, $cartTaxType) }} @else {{ handlePrice($cartItemInfo['price'], true, true, false, null, true, $cartTaxType) }} @endif @if(!empty($cartItemInfo['quantity'])) ({{ $cartItemInfo['quantity'] }} {{ trans('update.product') }}) @endif @if(!empty($cartItemInfo['extraPriceHint'])) {{ $cartItemInfo['extraPriceHint'] }} @endif
{{ trans('public.remove') }} :
@endforeach
{{ csrf_field() }} @if($hasPhysicalProduct) @include('web.default.cart.includes.shipping_and_delivery') @endif

{{ trans('cart.coupon_code') }}

{{ trans('cart.coupon_code_hint') }}

@if(!empty($userGroup) and !empty($userGroup->discount))

{{ trans('cart.in_user_group',['group_name' => $userGroup->name , 'percent' => $userGroup->discount]) }}

@endif {{ csrf_field() }}
{{ trans('cart.coupon_invalid') }} {{ trans('cart.coupon_valid') }}

{{ trans('cart.cart_totals') }}

{{ trans('cart.sub_total') }}

{{ handlePrice($subTotal) }}

{{ trans('public.discount') }}

{{ handlePrice($totalDiscount) }}

{{ trans('cart.tax') }} @if(!$taxIsDifferent) ({{ $tax }}%) @endif

{{ handlePrice($taxPrice) }}
@if(!empty($productDeliveryFee))

{{ trans('update.delivery_fee') }}

{{ handlePrice($productDeliveryFee) }}
@endif

{{ trans('cart.total') }}

{{ handlePrice($total) }}
@endsection @push('scripts_bottom') @endpush