@extends('reseller.layouts.app') @section('title', 'অর্ডার সফল - #' . $order->invoice_id) @section('page-title', 'অর্ডার সফল') @push('styles') @endpush @section('content')
আমার অর্ডার
{{-- Success Banner --}}

অর্ডার সফলভাবে প্লেস করা হয়েছে!

আপনার অর্ডার নম্বর: #{{ $order->invoice_id }}

{{-- ⭐ ডিজিটাল আইটেম ডাউনলোড সেকশন (শুধুমাত্র পেইড হলে দেখাবে) ⭐ --}} @if($is_fully_paid && $downloads->count() > 0)
ডিজিটাল আইটেম প্রস্তুত!

পেমেন্ট সফল হওয়ায় আপনার ফাইলগুলো ডাউনলোডের জন্য উন্মুক্ত করা হয়েছে।

@foreach($downloads as $dl) Download: {{ $dl->product->name ?? 'File' }} @endforeach
@endif

INVOICE

#{{ $order->invoice_id }}

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


Customer Details
{{ $order->shipping ? $order->shipping->name : 'N/A' }} {{ $order->shipping ? $order->shipping->phone : '' }}
{{ $order->shipping ? $order->shipping->address : '' }}
Payment Information
{{ $payment->payment_method ?? 'COD' }}
{{ $paid_amount >= $grand_total ? '✔ Verified Paid' : '✘ Payment Outstanding' }}
@foreach($order->orderdetails as $item) @endforeach
Product Description Price Qty Total
{{ $item->product_name }} @if($item->size && $item->size->name) Size: {{ $item->size->name }} @elseif($item->product_size) Size: {{ $item->product_size }} @endif @if($item->color && $item->color->name) | Color: {{ $item->color->name }} @elseif($item->product_color) | Color: {{ $item->product_color }} @endif ৳{{ number_format($item->sale_price, 2) }} {{ $item->qty }} ৳{{ number_format($item->sale_price * $item->qty, 2) }}
Subtotal ৳{{ number_format($subtotal, 2) }}
Shipping Fee ৳{{ number_format($order->shipping_charge, 2) }}
@if($order->discount > 0)
Discount -৳{{ number_format($order->discount, 2) }}
@endif
Grand Total ৳{{ number_format($grand_total, 2) }}
{{-- Reseller Profit Info --}} @if($order->reseller_profit)
আপনার লাভ ৳{{ number_format($order->reseller_profit, 2) }}
@endif
Paid Amount ৳{{ number_format($paid_amount, 2) }}
Remaining Due ৳{{ number_format($due_amount, 2) }}

Thank you for your business! This is a computer-generated invoice.

{{ $generalsetting->name ?? 'Company Name' }}

@endsection