@extends($data['layout']) @section('title', 'Checkout - ' . app_name()) @push('head-area') @endpush @section('content') Back to cart Shipping Address First Name: Last Name: Email: Contact Number: Address 1* Country: Select Country ... USA UK State: Select State ... New York Florida City: Zip / Post Code: Continue Shipping Method International Worldwide Express ($204.77) International Worldwide Expedited ($158.22) International Saver ($193.18) Shipping / Order Notes: Continue Choose Payment Method Pay Using PayPal Pay Using Credit / Debit Card Card Number: Expiry Month: Expiry Year: CVC: I've read and accept the terms & conditions. Place Order Order Summary @php $sub_total = 0; $bogo_discount = 0; @endphp @foreach($data['cart'] as $cart) @php //$sub_total += $cart->getPriceWithConditions(); $item_price = $cart->getPriceWithConditions(); $total_price = $cart->getPriceSumWithConditions(); if($cart->bogo_free) { $total_price_discount = $cart->bogo_free * $item_price; $bogo_discount += $total_price_discount; $talal_price_after_bogo = $total_price - $total_price_discount; } if($cart->bogod_count) { $discounted_price = ($item_price * $cart->bogod_percent) / 100; $total_price_discount = $cart->bogod_count * $discounted_price; $bogo_discount += $total_price_discount; $talal_price_after_bogo = $total_price - $total_price_discount; } $sub_total += $total_price; @endphp {{ $cart->name }} Qty:{{ $cart->quantity }} @if($cart->bogo_free || $cart->bogod_count) ${{ number_format($talal_price_after_bogo, 2) }} @else ${{ number_format($cart->getPriceSumWithConditions(), 2) }} @endif @endforeach @php $discount = 0; if(request()->session()->get('ses_coupon')) { $coupon = request()->session()->get('ses_coupon'); if($coupon['type'] == 'amount') { $discount = $coupon['value']; } else { $discount = ($sub_total * $coupon['value']) / 100; } } if($bogo_discount) { $discount += $bogo_discount; } if( request()->session()->get('ses_shipping_rate') ) $shipping_rate = request()->session()->get('ses_shipping_rate'); else $shipping_rate = 0; $grand_total = ($sub_total + $shipping_rate) - $discount; session()->put('ses_grand_total', $grand_total); @endphp Subtotal ${{ number_format($sub_total, 2) }} Discount ${{ number_format($discount, 2) }} Shipping Fee {{ $data['shipping_rate'] ?? "$0.00" }} Grand Total ${{ number_format($grand_total, 2) }} @endsection