@extends($activeTemplate . 'layouts.side_bar') @section('data')

@lang('Cart')

@forelse($carts as $cart)
@if ($cart->product_id && !$cart->domain_setup_id && !$cart->domain_id)
{{ __($cart->product->name) }}
@lang('Edit') {{ __($cart->product->serviceCategory->name) }} {{ @$cart->domain }}
{{ showAmount(@$cart->price) }}
{{ @billingCycle($cart->billing_cycle, true)['showText'] }} {{ gs('cur_sym') }}{{ showAmount(@$cart->setup_fee) }} @lang('Setup Fee') @lang('Total') {{ showAmount(@$cart->total) }}
@else
@if ($cart->type == 4)
@lang('Domain Renew')
@lang('Edit') @else
@lang('Domain Registration')
@lang('Edit') @endif {{ @$cart->domain }} - {{ @$cart->reg_period }} @lang('Year') {{ @$cart->id_protection ? __('with ID Protection') : null }}
{{ showAmount(@$cart->price) }}
@if (@$cart->id_protection) {{ showAmount(@$cart->setup_fee) }} @lang('ID Protection') @endif @lang('Total') {{ showAmount(@$cart->total) }}
@endif
@empty
@endforelse @if (@$cart)
@if (@$appliedCoupon)
@csrf

{{ $appliedCoupon->coupon->code }} - {{ $appliedCoupon->coupon_type == 0 ? showAmount($appliedCoupon->coupon_discount, currencyFormat:false) . '%' : showAmount($carts->sum('discount')) }} @lang('Discount')

@else
@csrf
@endif
@endif
@lang('Order Summary')
@lang('Subtotal') {{ showAmount($carts->sum('total')) }}
@if ($appliedCoupon)
@lang('Get') - {{ $appliedCoupon->coupon_type == 0 ? showAmount($appliedCoupon->coupon_discount, currencyFormat:false) . '%' : showAmount($cart->sum('discount')) }} @lang('Discount') {{ showAmount($cart->sum('discount')) }}
@endif
@lang('Total')
{{ showAmount($carts->sum('after_discount')) }}
@if (count($carts))
@csrf
@endif
@endsection @push('style') @endpush