@extends('backEnd.layouts.master') @section('title', 'Reseller Orders') @section('content')

Reseller Orders ({{ $orders->total() }})

Only incomplete/pending orders are shown here. Completed orders appear in the main order list.

Clear
@csrf
0 orders selected
@forelse($orders as $order) @empty @endforelse
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) {{ $detail->product_name }} @else
@endif @endforeach @if($order->orderdetails->count() > 3)
+{{ $order->orderdetails->count() - 3 }}
@endif
@else No products @endif
৳{{ number_format($order->customer_payable_amount ?? $order->amount, 0) }} ৳{{ number_format($order->reseller_profit ?? 0, 0) }}
@csrf

No reseller orders found

@if ($orders->hasPages())
    {{-- Previous Button --}} @if ($orders->onFirstPage())
  • ← Prev
  • @else
  • @endif {{-- Page Numbers (Logic to show surrounding pages) --}} @foreach(range(1, $orders->lastPage()) as $i) @if($i >= $orders->currentPage() - 2 && $i <= $orders->currentPage() + 2) @if ($i == $orders->currentPage())
  • {{ $i }}
  • @else
  • {{ $i }}
  • @endif @endif @endforeach {{-- Next Button --}} @if ($orders->hasMorePages())
  • @else
  • Next →
  • @endif
@endif
@push('scripts') @endpush @endsection