@extends('layouts.admin') @section('title', 'Collection History') @section('content')

Collection History

Track and manage delivery collection records

Total Collected

DT{{ number_format($totalCollections, 2) }}

This Month

DT{{ number_format($monthlyCollections, 2) }}

Total Records

{{ $totalRecords }}

All Collections

@forelse($collections as $index => $collection) @empty @endforelse
# Delivery Man Order Collected Amount Status Created At
{{ $collections->firstItem() + $index }}
{{ $collection->deliveryMan->first_name }} {{ $collection->deliveryMan->last_name }}
{{ $collection->deliveryMan->email }}
@if($collection->order) #{{ $collection->order->order_number ?? $collection->order->id }} @else - @endif DT{{ number_format($collection->amount, 2) }} {{ ucfirst($collection->status ?? 'Pending') }}
{{ $collection->created_at->format('M d, Y') }}
{{ $collection->created_at->format('h:i a') }}

No collection records

Collection records will appear here once deliveries are collected.

@if($collections->hasPages())

Showing {{ $collections->firstItem() }}-{{ $collections->lastItem() }} of {{ $collections->total() }}

{{ $collections->links() }}
@endif
@endsection