@extends('layouts.home') @section('content') Checkout Complete your order securely Back to Cart @csrf Customer Information First Name * @error('first_name') {{ $message }} @enderror Last Name * @error('last_name') {{ $message }} @enderror Email Address * @error('email') {{ $message }} @enderror Phone Number * @error('phone') {{ $message }} @enderror Shipping Information Block No & Street Address * @error('address') {{ $message }} @enderror City * @error('city') {{ $message }} @enderror State/Province * Select State/Province @php $states = [ // 'Abu Dhabi', 'Dubai', 'Sharjah', 'Ajman', // 'Umm Al Quwain', // 'Ras Al Khaimah', // 'Fujairah', ]; $selectedState = old( 'state', auth()->user()->customerInfo->state ?? '', ); @endphp @foreach ($states as $state) {{ $state }} @endforeach @error('state') {{ $message }} @enderror {{-- Zip Code * @error('zip') {{ $message }} @enderror --}} Country * {{-- user()->customerInfo->country ?? '') == 'US' ? 'selected' : '' }}> United States user()->customerInfo->country ?? '') == 'CA' ? 'selected' : '' }}> Canada user()->customerInfo->country ?? '') == 'GB' ? 'selected' : '' }}> United Kingdom user()->customerInfo->country ?? '') == 'AU' ? 'selected' : '' }}> Australia --}} United Arab Emirates @error('country') {{ $message }} @enderror Payment Method @if ($config->paymeny_options) @php $paymentOptions = explode(',', $config->paymeny_options); @endphp @foreach ($paymentOptions as $index => $option) @php $option = trim($option); $optionValue = strtolower(str_replace(' ', '_', $option)); // Set icons and descriptions based on payment method $icon = ''; $description = ''; $extraIcons = ''; switch (strtolower($option)) { case 'cash on delivery': $icon = 'fas fa-money-bill-wave fa-2x text-success'; $description = 'Pay when you receive your order'; break; case 'credit on delivery': $icon = 'fas fa-credit-card fa-2x text-primary'; $description = 'Pay with card when you receive your order'; break; case 'credit card': case 'debit card': case 'credit/debit card': $icon = 'fas fa-credit-card fa-2x text-primary'; $description = 'Pay securely with your card'; $extraIcons = ' '; break; case 'paypal': $icon = 'fab fa-paypal fa-2x text-primary'; $description = 'Pay with your PayPal account'; break; case 'bank transfer': $icon = 'fas fa-university fa-2x text-info'; $description = 'Transfer directly from your bank'; break; case 'mobile payment': $icon = 'fas fa-mobile-alt fa-2x text-success'; $description = 'Pay using mobile payment apps'; break; default: $icon = 'fas fa-credit-card fa-2x text-secondary'; $description = 'Payment method available'; } @endphp {{ $option }} {{ $description }} @if ($extraIcons) {!! $extraIcons !!} @else @endif @endforeach @else No payment methods are currently configured. Please contact support. @endif @error('payment_method') {{ $message }} @enderror Back to Cart Order Summary @foreach ($cartItems as $item) @if ($item->product->image) @else @endif {{ $item->product->name }} Qty: {{ $item->quantity }} {{ $item->total }} @if ($config->currancy) {{ $config->currancy }} @endif @endforeach Subtotal {{ number_format($cartItems->sum('total'), 2) }} @if ($config->currancy) {{ $config->currancy }} @endif Total {{ number_format($cartItems->sum('total'), 2) }} @if ($config->currancy) {{ $config->currancy }} @endif @if($config->minimum_spent && $config->minimum_spent > 0) Minimum Order amount is {{number_format($config->minimum_spent,2)}} {{$config->currancy ?? ''}} @endif Place Order Your payment information is secure @endsection
Complete your order securely
{{ $description }}