Reports

{{-- Search + Summary --}}
Search Invoices
{{-- --}}
{{-- Invoice Summary --}}
Invoice Summary
  • Invoice Total PKR {{ $summary['invoice_total'] ?? 0 }}
  • Return Charge PKR {{ $summary['return_charge'] ?? 0 }}
  • Invoice Date {{ $summary['invoice_date'] ?? '-' }}
  • Total Payout {{ $summary['final_payout'] ?? 0 }}
  • Payment Status @if(($summary['status'] ?? '') === 'Paid') Paid @else {{ $summary['status'] ?? 'Unpaid' }} @endif
{{-- Orders Table --}}
@forelse($orders as $key => $order) @php $payout = $order->payout; $first_item = $order->items->first(); @endphp @empty @endforelse
# ID's Date/Time Image Title Items Total Penalties Payout Pay Status Invoice No Status
{{ $key+1 }} {{ $order->id }}

{{ \App\Helpers\Helper::to_local_date($order->created_at, 'Y-m-d') }}

{{ \App\Helpers\Helper::to_local_date($order->created_at, 'H:i:s') }}

{{ $first_item->productVariant->product->title ?? '-' }} {{ $order->items->count() }} Item(s) RS. {{ $order->seller_profit_amount }} RS. {{ $order->seller_deduction_amount }} RS. {{ $order->seller_profit_amount - $order->seller_deduction_amount }} @if($payout && $payout->status == \App\Models\Payout::STATUS_PAID) Paid @else Unpaid @endif {{ $payout->id ?? '-' }} {{ \App\Models\Order::STATUS[$order->status] ?? '-' }}
Name Mobile Address
{{ $order->customer_name }} {{ $order->customer_phone }} {{ $order->customer_address }}
@foreach($order->items as $item) @php $variant = $item->productVariant; $product = $variant->product; @endphp
  • {{ $product->title }}
    {{ $product->title }}
    • {{ @$product->brand->title }} | {{ $variant->getAttributeSummary() }} | Qty: {{ $item->quantity }}

    • {{ $item->unit_amount }} PKR
@endforeach
No orders found.
{{-- Load More --}}
@if($orders->hasMorePages()) @endif
@push('scripts') @endpush