@extends('layouts.home') @section('content')

Checkout

Complete your order securely

Back to Cart
@csrf
Customer Information
@error('first_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
Shipping Information
@error('address')
{{ $message }}
@enderror
@error('city')
{{ $message }}
@enderror
@error('state')
{{ $message }}
@enderror
{{--
@error('zip')
{{ $message }}
@enderror
--}}
@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
@endforeach @else
No payment methods are currently configured. Please contact support.
@endif
@error('payment_method')
{{ $message }}
@enderror
Order Summary
@foreach ($cartItems as $item)
@if ($item->product->image) {{ $item->product->name }} @else {{ $item->product->image }} @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
Your payment information is secure
@endsection