@php $layout = $isMobile ? 'layouts.mobile' : 'layouts.desktop'; @endphp @extends($layout) @section('title', 'Checkout - Gletra') @push('styles') @endpush @section('content') @if($isMobile)
Checkout
@else

Checkout

@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf
@csrf
@php $pricesIncludeTax = $pricing['prices_include_tax'] ?? true; $freeDelivery = $pricing['free_delivery'] ?? ($shipping <= 0); @endphp @if($isMobile)
Order Total
₹{{ number_format($total, 2) }}
{{ $cartItems->count() }} item{{ $cartItems->count() > 1 ? 's' : '' }} · {{ $freeDelivery ? 'Free delivery' : 'Delivery ₹'.number_format($shipping, 2) }} · Secure checkout
@endif @if(!$isMobile)
Checkout Tips
  • Confirm your delivery address and phone number before placing the order.
  • Review item quantity and price in the summary section.
  • Choose COD only if you will be available to receive the package.
  • Keep your order ID safe for tracking and support.
  • Payments on Gletra are encrypted and 100% secure.
@else
Quick tips
  • Confirm your delivery address and phone number.
  • Review items and choose a payment method.
  • Tap the button below to place your order.
@endif
@if($isMobile)
@endif
@if($isMobile)
1 Delivery Address
@else
1 Shipping Address
@endif
@if($addresses->isEmpty())
{{ $isMobile ? 'Add a delivery address to continue.' : 'Please add a shipping address to proceed with your order.' }}
@else @php $selectedAddressId = $addresses->firstWhere('is_default', true)?->id ?? $addresses->first()?->id; @endphp
@foreach($addresses as $address)
@endforeach
@endif
@if($isMobile)
@endif
@if($isMobile)
@endif @if($isMobile)
@endif
@if($isMobile)
2 Order Items ({{ $cartItems->count() }})
@else
2 Review Your Items
@endif
@foreach($cartItems as $item) @php $price = $item->price > 0 ? $item->price : ($item->product->sale_price ?? $item->product->price); @endphp
{{ $item->product->name }}
{{ $item->product->name }}
Qty: {{ $item->quantity }} ₹{{ number_format($price, 2) }} each
₹{{ number_format($price * $item->quantity, 2) }}
@endforeach
@if($isMobile)
@endif
@if($isMobile)
@endif @if($isMobile)
@endif
@if($isMobile)
3 Payment Method
@else
3 Payment Method
@endif
@if(($walletEligible ?? false) && ($maxWalletUsable ?? 0) > 0)

Apply up to ₹{{ number_format($maxWalletUsable ?? 0, 2) }} (max {{ $walletUsagePercent ?? 40 }}% of this order) from your wallet. Pay the rest via your selected payment method.

@elseif(($walletBalance ?? 0) > 0)
Gletra Wallet is available on orders of ₹{{ number_format($walletMinOrder ?? 199, 0) }} or more. @if(($pricing['amount_needed_for_free_delivery'] ?? 0) > 0) Add ₹{{ number_format($pricing['amount_needed_for_free_delivery'], 0) }} more to unlock wallet & free delivery. @endif
@endif
@if($isMobile)
@endif
@if($isMobile)
@endif
@if($isMobile)
@endif
@if($isMobile)
Price Details
@endif
Order Summary
@if(session()->has('coupon'))
{{ session('coupon')['code'] }}
@csrf
@else
@csrf
@endif
{{ $isMobile ? 'Subtotal' : 'Bag Subtotal' }} ₹{{ number_format($subtotal, 2) }}
@if($discount > 0)
Coupon Discount −₹{{ number_format($discount, 2) }}
@endif @if($tax > 0)
GST ({{ rtrim(rtrim(number_format($taxRate, 2), '0'), '.') }}%) ₹{{ number_format($tax, 2) }}
@elseif($pricesIncludeTax)
GST Included
@endif
Delivery @if($freeDelivery) FREE @else ₹{{ number_format($shipping, 2) }} @endif
Gletra Wallet −₹0.00
Total Payable ₹{{ number_format($total, 2) }}
100% Safe & Secure
@unless($isMobile) @endunless
@if($isMobile)
@endif
@if(isset($recentlyViewed) && $recentlyViewed->count() > 0)
Recently Viewed
VIEW ALL
@foreach($recentlyViewed as $rv) @php $product = $rv->product; @endphp @if($product)
{{ $product->name }}
{{ $product->name }}
₹{{ number_format($product->sale_price ?? $product->price, 0) }}
@endif @endforeach
@endif @if(isset($newProducts) && $newProducts->count() > 0)
New Products
VIEW ALL
@foreach($newProducts as $product)
{{ $product->name }}
{{ $product->name }}
₹{{ number_format($product->sale_price ?? $product->price, 0) }}
@endforeach
@endif
@if($isMobile) @push('mobile-fixed-footer') @endpush @endif @push('scripts') @endpush @endsection