@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')
{{ $order->created_at->format('d M, Y h:i A') }}
ট্র্যাকিং: {{ $order->courier_name }} - {{ $order->tracking_id }}
@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) }}
{{ $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) }}