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

Commission History

Track and manage delivery man commission records

Total Commissions

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

This Month

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

Total Records

{{ $totalRecords }}

All Commissions

@forelse($commissions as $index => $commission) @empty @endforelse
# 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 records

Commission records will appear here once delivery men complete deliveries.

@if($commissions->hasPages())

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

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