@extends('layouts.public.app') @section('title', 'Checkout | Chemical Wholesale') @section('content')
Shipping and Delivery
Payment
Confirmation
Shipping & Delivery
@if (count($address) > 0) @foreach ($address as $a)
@csrf
id == @$selected_address->id ? 'checked' : '' }} onchange="this.form.submit()" name="addr_id">
{{ $a->address_1 }} @if (!empty($a->address_2)) {{ $a->address_2 }} @endif @if (!empty($a->city) || !empty($a->state) || !empty($a->zipcode)) {{ $a->city }} {{ $a->state ? ', ' . $a->state : '' }}{{ $a->zipcode ? ', ' . $a->zipcode : '' }} @endif @if (!empty($a->getCountry)) {{ $a->getCountry->name_en }} @endif
{{ $a->address_1 }}
@if (!empty($a->address_2)) {{ $a->address_2 }}
@endif @if (!empty($a->city) || !empty($a->state) || !empty($a->zipcode)) {{ $a->city }} {{ $a->state ? ', ' . $a->state : '' }}{{ $a->zipcode ? ', ' . $a->zipcode : '' }}
@endif @if (!empty($a->getCountry)) {{ $a->getCountry->name_en }}
@endif
@endforeach @if($subtotal <= 0)

Product(s) in your cart is not available to deliver to the selected Address.

@endif @else
Add Your First Address

You can add multiple addresses of your home, warehouses and other facilities

Address
@endif
Select Payment Method
@csrf
Order Review
@php $c=0; $enable_checkout = false; @endphp @if (count($products) > 0) @foreach ($products as $product) @php $images = @$product->getimages ? @$product->getimages->groupby('section') : ''; $is_available = in_array( @$selected_address->country_id, @$product->available_country, ); if ($is_available) { $enable_checkout = true; } @endphp @if ($enable_checkout) @endif
@if ($enable_checkout)
Delivery Address
@else
This product is not available @if(@$product->package->getPackageAvailability) for export @endif
@endif
img
{{ @$product['name'] }}
Product SKU: {{ @$product->product_sku }}
Packaging: {{ ucfirst(@$product->package->packaging_type) ?: 'N.A' }}
MOQ: {{ @$product->quantity ?: 'N.A' }}
Price: ${{ number_format(@$product->package->price, 2) }}
Quantity: @if ($enable_checkout)
@endif
@php $c++; @endphp @endforeach @else

No Products available for checkout.

@endif

* Your order will be submitted without payment. The seller will coordinate payment terms with you upon accepting the order.

Order Details
@foreach ($products as $product) @php $enable_checkout_info = false; $is_available_info = in_array( @$selected_address->country_id, @$product->available_country, ); if ($is_available_info) { $enable_checkout_info = true; } @endphp @if ($product->package && $is_available_info) @php $images = @$product->getimages ? @$product->getimages->groupby('section') : ''; @endphp
img
{{ $product['name'] }}

${{ $product['package']['price'] ?: '0.00' }} x {{ $product['quantity'] ?: '0' }} {{ ucfirst(@$product->package->packaging_type) ?: '' }}

@endif @endforeach
Subtotal:
${{ number_format(@$subtotal, 2) ?: '0.0' }}
Discount:
$0.00
Tax (20%):
$0.00
Shipping:
${{ number_format(@$shipping_price, 2) ?: '0.0' }}
Total to Pay
${{ number_format(@$subtotal, 2) ?: '0.0' }}

* Your order will be submitted without payment. The seller will coordinate payment terms with you upon accepting the order.

@include('public.profile.add-address');
@endsection @push('css') @endpush @push('js') @endpush