@if (sizeof(Cart::instance('default')->content()) > 0)

{!! __('Receipt') !!}

@foreach (Cart::instance('default')->content() as $k => $item)

{!! $item->name !!}

{!! $item->qty !!} × {!! $item->price !!} = {{ $item->subtotal }} {{ __('EGP') }}
@endforeach @if (!session()->has('coupon')) @endif @php // dump(session()->get('coupon')); @endphp @if (session()->has('coupon')) @if (session()->get('coupon')['min_amount']) @endif @endif
{!! __('Enjoy an extra discount') !!}
{{ csrf_field() }}
{!! __('Discount coupon') !!} ({{ session()->get('coupon')['code'] }}) (@if (session()->get('coupon')['type'] == 'percent') {!! __('Percent discount') !!} {{ session()->get('coupon')['amount'] }}% @else {!! __('Discount value') !!} {{ session()->get('coupon')['amount'] }} {!! __('EGP') !!} @endif)
{!! __('Lowest purchase value') !!} ({{ session()->get('coupon')['min_amount'] }}) {!! __('EGP') !!}
{!! __('Discount value') !!} {{ session()->get('coupon')['discount'] }} {!! __('EGP') !!}
{{ csrf_field() }} {{ method_field('delete') }}
{!! __('Total payment') !!} @if (Cart::instance('default')->subtotal(false,false,false) > session()->get('coupon')['min_amount']) {{ Cart::instance('default')->subtotal(false,false,false) - session()->get('coupon')['discount']}} {!! __('EGP') !!} @else {{ Cart::instance('default')->subtotal(false,false,false) }} {!! __('EGP') !!} @endif

{!! __('Receipt Total') !!}

@if (Cart::instance('default')->subtotal(false,false,false) > session()->get('coupon')['min_amount']) {{ Cart::instance('default')->subtotal(false,false,false) - session()->get('coupon')['discount']}} {!! __('EGP') !!} @else {{ Cart::instance('default')->subtotal(false,false,false) }} {!! __('EGP') !!} @endif
@endif