@extends('layouts.app') @section('content')

Agent Details: {{ $agent->name }}

Basic Information

Agent ID: {{ $agent->id }}

Name: {{ $agent->name }}

Contact No.: {{ $agent->mobile_no }}

Joining Date: {{ $agent->created_at ? $agent->created_at->format('d M Y') : 'N/A' }}

Assigned Services

@forelse($serviceOrders as $index => $order) @empty @endforelse
Sl. Submission Date Service ID Service Name Branch Agent Commission Delivery Date Status
{{ $index + 1 }} {{ $order->submission_date ? $order->submission_date->format('d M Y') : 'N/A' }} {{ $order->service_id }} {{ $order->service_name }} {{ $order->branch_name }} {{ number_format($order->agent_commission, 2) }} {{ $order->delivery_date ? $order->delivery_date->format('d M Y') : 'N/A' }} {{ ucfirst($order->status) }}
No service orders found.

Payment History

Add Payment
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@forelse($payments as $payment) @empty @endforelse
Date Voucher ID Branch Amount Due
{{ $payment->date ? $payment->date->format('d M Y') : 'N/A' }} {{ $payment->voucher_id ?? 'N/A' }} {{ $payment->branch_name }} {{ number_format($payment->amount, 2) }} {{ number_format($payment->due, 2) }}
No payment history found.
@endsection