@php // session()->remove('current_address'); $amount = 0; if (auth()->check() && session()->has('current_address')) { $destination = session()->get('current_address'); $amount = @$destination->amount ; } $discount = 0; if (session()->has('coupon')) { $coupon = session()->get('coupon'); $discount = @$coupon['discount']; } $subtotal = Cart::instance('default')->subtotal(false,false,false) ; @endphp

{!! __('Shopping cart total') !!} @if ($discount > 0 && $subtotal > @$coupon['min_amount']) {{ $subtotal - $discount}} {!! __('EGP') !!} @else {{ $subtotal }} {!! __('EGP') !!} @endif

@if ($amount > 0 || !$showButtons) @endif @if ($discount > 0) @php $min_amount = @$subtotal > @$coupon['min_amount'] ? $discount : '0.0'; @endphp @endif
{!! __('Subtotal') !!} {{ @$subtotal }} {{ __('EGP') }}
{{ __('Shipping') }} {{ $amount }} {{ __('EGP') }}
{!! __('Discount value') !!} {{ $min_amount }} {{ __('EGP') }}
{{ __('Totle Price') }} @if (@$subtotal > @$coupon['min_amount']) {{ @$subtotal + $amount - $discount}} @else {{ @$subtotal + $amount }} @endif {{ __('EGP') }}
@if (session()->has('coupon'))

{!! __('Discount coupon') !!}

@if (@$coupon['min_amount'])

{!! __('Discount Coupon is applied to purchases over') !!} ({{ @$coupon['min_amount'] }}) {!! __('EGP') !!}

@else
@endif
    @if (@$coupon['type'] == 'spin')
  1. {{ @$coupon['mssg'] }}
  2. @endif
  3. @if (@$coupon['code']) {!! __('Coupon discount') !!} : {{ @$coupon['code'] }} @endif
@else
@endif
{{--
{{ session()->get('curr_url') }}
--}}
@if (session()->get('curr_url') == 'cart') @else @endif