@extends('layout.app') @section('content')
Order Success

Thank You, {{ $order->first_name }}!

Your order {{ $order->order_number }} has been placed successfully and is now being processed.

@if($order->email)

A confirmation will be sent to {{ $order->email }}

@else
@endif Back To Home
{{-- ===== LEFT ===== --}}
{{-- Order Details --}}
Order Details
  • Order ID

    #{{ $order->order_number }}
  • Order Status

    @php [$sc, $bg, $sl] = match($order->status) { 'pending' => ['text-warning-dark', 'bg-[rgba(255,193,7,0.16)]', 'Pending'], 'processing' => ['text-warning-dark', 'bg-[rgba(255,193,7,0.16)]', 'Processing'], 'shipped' => ['text-info', 'bg-[rgba(0,184,217,0.16)]', 'Shipped'], 'delivered' => ['text-success', 'bg-[rgba(0,171,85,0.16)]', 'Delivered'], 'cancelled' => ['text-error', 'bg-[rgba(255,72,66,0.16)]', 'Cancelled'], 'failed' => ['text-error', 'bg-[rgba(255,72,66,0.16)]', 'Failed'], default => ['text-gray-500', 'bg-gray-100', ucfirst($order->status)], }; @endphp {{ $sl }}
  • Payment Method

    {{ $order->payment_method === 'stripe' ? 'Credit / Debit Card (Stripe)' : 'Cash on Delivery' }}
  • Payment Status

    @php [$pc, $pb, $pl] = match($order->payment_status) { 'paid' => ['text-success', 'bg-[rgba(0,171,85,0.16)]', 'Paid'], 'pending' => ['text-warning-dark', 'bg-[rgba(255,193,7,0.16)]', 'Pending'], 'failed' => ['text-error', 'bg-[rgba(255,72,66,0.16)]', 'Failed'], 'refunded' => ['text-info', 'bg-[rgba(0,184,217,0.16)]', 'Refunded'], default => ['text-gray-500', 'bg-gray-100', ucfirst($order->payment_status)], }; @endphp {{ $pl }}
  • Amount Payable

    ${{ number_format($order->total, 2) }} @if($order->payment_status === 'paid') (Paid) @endif

  • Order Date

    {{ $order->created_at->format('h:i A, d F, Y') }}
{{-- Shipping Address --}}
Shipment Address
  • {{ $order->first_name }} {{ $order->last_name }} ({{ $order->address_type }})
  • {{ $order->phone }}
  • @if($order->email)
  • {{ $order->email }}
  • @endif
  • {{ collect([$order->address_line, $order->city, $order->state, $order->zip_code, $order->country])->filter()->implode(', ') }}
  • Free Delivery
{{-- Feedback --}}
Give us a Feedback
{{-- ===== RIGHT ===== --}}
Cart Items ({{ $order->items->count() }})
@foreach($order->items as $item) @endforeach
{{ $item->product_name }}

{{ $item->product_name }}

{{ $item->quantity }}x @if($item->size) · {{ $item->size }} @endif @if($item->color) · {{ $item->color }} @endif

${{ number_format($item->line_total, 2) }}
{{-- Order Summary --}}
Order Summary

Sub-Total ${{ number_format($order->subtotal, 2) }}

Shipment ${{ number_format($order->shipping, 2) }}

Tax ${{ number_format($order->tax, 2) }}

Total ${{ number_format($order->total, 2) }}
Free Shipping

Enjoy the Convenience of Free Shipping on Every Order

24x7 Support

Round-the-Clock Assistance, Anytime You Need It

30 Days Return

Your Satisfaction is Our Priority: Return Any Product Within 30 Days

Secure Payment

Seamless Shopping Backed by Safe and Secure Payment Options

@endsection @push('scripts') @endpush