@php $customer_details = $data['customer_details']; $country_list = $data['country_list']; $shpaddres = $data['shpaddres']; $offer_exist_in_cart = false; $cart_products = $data['cart_products']['product_array']; $product_grand_total = 0; $product_grand_total_with_discount = 0; $out_fit_ids = []; $inactive_product_count = 0; $inactive_product_array = []; $appendcheck = $data['appendarray']; @endphp @extends('layouts.user-inner') @section('content')

Enter Billing Address

@csrf
Save as primary address
Cancel @if (Session::has('buy_as_guest')) @else @endif

Order Summary

@foreach ($cart_products as $cart_product)
{{ $cart_product['product_name'] }} {{ $cart_product['product_size_name'] }} {{ $cart_product['product_color'] }}
@php $product_price = $cart_product['product_price']; $product_quantity = $cart_product['product_quantity']; $product_total_price = $product_price * $product_quantity; $product_grand_total = $product_grand_total + $product_total_price; @endphp @php @endphp @if ($cart_product['offer_datas']) @php $offer_exist_in_cart = true; $offer_details = $cart_product['offer_datas']; $offer_price = $offer_details['product_offer_amount'] * $product_quantity; $offer_percentage = $offer_details['product_offer_percentage']; $product_grand_total_with_discount = $product_grand_total_with_discount + $offer_price; @endphp QAR {{ number_format($offer_price, 2, '.', '') }} @else QAR {{ number_format($product_total_price, 2, '.', '') }} @php $product_grand_total_with_discount = $product_grand_total_with_discount + $product_total_price; @endphp @endif QTY : {{ $cart_product['product_quantity'] }}
@endforeach
Subtotal QAR {{ number_format($product_grand_total, 2, '.', '') }}
Discount QAR @if ($offer_exist_in_cart == true) {{ number_format($product_grand_total - $product_grand_total_with_discount, 2, '.', '') }} @else{{ number_format(00, 2, '.', '') }} @endif
Total Amount QAR {{ number_format($product_grand_total_with_discount, 2, '.', '') }}
 Cash On Delivery
@csrf @if (Session::has('buy_as_guest')) @else @endif Checkout Now
@if (Session::has('buy_as_guest')) {{ '' }} @else

Choose a Billing Address

@if (count($shpaddres) > 0)
@foreach ($shpaddres as $address)
{{ $address->shp_u_name . ' ' . $address->shp_u_lname }}
@if ($address->shp_u_adds == '' && $address->shp_u_adds_2 == '') {{ 'N/A' }} @else{{ $address->shp_u_adds . ', ' . $address->shp_u_adds_2 . ', ' . $address->shp_u_city . ', ' }} @if ($address->shp_u_province != '') {{ $address->shp_u_province . ', ' }} @endif @if ($address->shp_u_country != 0) {{ $address->country_pro->country_name }} @endif @endif
@if ($address->shp_primary_stat == 1) Selected @else Use This Address @endif
@endforeach @else @endif
@endif @if (Session::has('CheckError')) @endif @endsection