@extends('layouts.admin') @section('title', 'Commission History') @section('content')
Track and manage delivery man commission records
Total Commissions
DT{{ number_format($totalCommissions, 2) }}
This Month
DT{{ number_format($monthlyCommissions, 2) }}
Total Records
{{ $totalRecords }}
| # | Delivery Man | Order | Type | Commission Amount | Created At |
|---|---|---|---|---|---|
| {{ $commissions->firstItem() + $index }} |
{{ $commission->deliveryMan->first_name }} {{ $commission->deliveryMan->last_name }}
{{ $commission->deliveryMan->email }}
|
@if($commission->order) #{{ $commission->order->order_number ?? $commission->order->id }} @else - @endif | {{ ucfirst($commission->type) }} | DT{{ number_format($commission->amount, 2) }} |
{{ $commission->created_at->format('M d, Y') }}
{{ $commission->created_at->format('h:i a') }}
|
No commission recordsCommission records will appear here once delivery men complete deliveries. |
|||||
Showing {{ $commissions->firstItem() }}-{{ $commissions->lastItem() }} of {{ $commissions->total() }}
{{ $commissions->links() }}