@extends('backEnd.layouts.master') @section('title', 'Reseller Orders') @section('content')
Only incomplete/pending orders are shown here. Completed orders appear in the main order list.
| SL | Invoice ID | Date | Reseller | Customer | Products | Amount | Reseller Profit | Status | Action | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration + ($orders->currentPage() - 1) * $orders->perPage() }} | #{{ $order->invoice_id }} |
{{ $order->created_at->format('d M, Y') }} {{ $order->created_at->format('h:i A') }} |
@if($order->user)
{{ $order->user->name }} {{ $order->user->email }} @else N/A @endif |
{{ $order->customer->name ?? 'N/A' }} {{ $order->customer->phone ?? 'N/A' }} |
@if($order->orderdetails && $order->orderdetails->count() > 0)
@foreach($order->orderdetails->take(3) as $detail)
@php
$productImage = null;
if ($detail->product && $detail->product->image) {
$productImage = $detail->product->image->image;
} elseif ($detail->image) {
$productImage = $detail->image->image;
}
@endphp
@if($productImage)
@else
No products
@endif
+{{ $order->orderdetails->count() - 3 }}
@endif
|
৳{{ number_format($order->customer_payable_amount ?? $order->amount, 0) }} | ৳{{ number_format($order->reseller_profit ?? 0, 0) }} | |||
|
No reseller orders found |
||||||||||