@extends('layouts.admin') @section('title', 'Delivery Men') @section('content')

Delivery Men Lists

Manage your delivery staff and track their performance.

Add New Delivery Man
@if(session('success'))
{{ session('success') }}
@endif

Delivery Men

@forelse($deliveryMen as $index => $man) @empty @endforelse
# Name Phone Last Login Salary Pickup Hub Status Balance Total Collection Total Commission Options
{{ $deliveryMen->firstItem() + $index }}
{{ $man->first_name }} {{ $man->last_name }}
{{ str_replace(['@', '.'], ['*****@', '*******.'], $man->email) }}
@if($man->phone) {{ substr($man->phone, 0, 3) . '***********' . substr($man->phone, -3) }} @else - @endif {{ $man->updated_at ? $man->updated_at->format('M d, Y h:i a') : 'Never' }} DT{{ number_format($man->salary ?? 0, 2) }} {{ $man->pickupHub?->name ?: '-' }} DT{{ number_format($man->balance ?? 0, 2) }} DT{{ number_format($man->total_collection ?? 0, 2) }} DT{{ number_format($man->total_commission ?? 0, 2) }}
@csrf @method('DELETE')
No delivery men found. Add your first delivery man.
@if($deliveryMen->hasPages())
{{ $deliveryMen->links() }}
@endif
@endsection