@extends('layouts.frontend') @section('title', 'অর্ডার #' . str_pad($order->id, 6, '0', STR_PAD_LEFT) . ' - ' . \App\Models\Setting::get('site_name', config('app.name'))) @section('content')
@include('frontend.customer.partials.sidebar')

অর্ডার #{{ str_pad($order->id, 6, '0', STR_PAD_LEFT) }}

{{ $order->created_at->format('d M, Y h:i A') }}

@php $statusColors = [ 'pending' => 'yellow', 'confirmed' => 'blue', 'processing' => 'indigo', 'shipped' => 'purple', 'delivered' => 'green', 'cancelled' => 'red', ]; $statusLabels = [ 'pending' => 'অপেক্ষমান', 'confirmed' => 'নিশ্চিত', 'processing' => 'প্রক্রিয়াধীন', 'shipped' => 'শিপড', 'delivered' => 'ডেলিভারি সম্পন্ন', 'cancelled' => 'বাতিল', ]; $color = $statusColors[$order->status] ?? 'gray'; @endphp {{ $statusLabels[$order->status] ?? ucfirst($order->status) }}
@if($order->tracking_id)

ট্র্যাকিং: {{ $order->courier_name }} - {{ $order->tracking_id }}

@endif

অর্ডার করা পণ্য

@foreach($order->items as $item)
@if($item->product) {{ $item->product_name }} @else
@endif

{{ $item->product_name }}

@if($item->color || $item->size)

@if($item->color)রঙ: {{ $item->color }}@endif @if($item->color && $item->size) | @endif @if($item->size)সাইজ: {{ $item->size }}@endif

@endif

{{ $item->quantity }}x ৳{{ number_format($item->price, 0) }}

৳{{ number_format($item->price * $item->quantity, 0) }}
@endforeach
সাবটোটাল ৳{{ number_format($order->subtotal, 0) }}
@if($order->discount > 0)
ডিসকাউন্ট -৳{{ number_format($order->discount, 0) }}
@endif
ডেলিভারি চার্জ ৳{{ number_format($order->shipping_charge, 0) }}
সর্বমোট ৳{{ number_format($order->total, 0) }}

ডেলিভারি ঠিকানা

{{ $order->shipping_name }}
{{ $order->shipping_phone }}
{{ $order->shipping_address }}
{{ $order->shipping_area }}, {{ $order->shipping_district }}

পেমেন্ট তথ্য

পদ্ধতি: {{ $order->payment_method === 'cod' ? 'ক্যাশ অন ডেলিভারি' : ucfirst(str_replace('_', ' ', $order->payment_method)) }}
স্ট্যাটাস: @php $paymentStatusColors = ['pending' => 'yellow', 'paid' => 'green', 'failed' => 'red']; $paymentStatusLabels = ['pending' => 'অপেক্ষমান', 'paid' => 'পরিশোধিত', 'failed' => 'ব্যর্থ']; $pColor = $paymentStatusColors[$order->payment_status] ?? 'gray'; @endphp {{ $paymentStatusLabels[$order->payment_status] ?? ucfirst($order->payment_status) }}

অর্ডার লিস্টে ফিরে যান
@endsection