@extends('layouts.app') @section('title', 'My Clients') @section('page-title', 'My Assigned Clients') @section('content')
Clients Assigned to Me
Add New Client
My Clients: {{ $stats['total'] }}
Active Clients: {{ $clients->where('status', 'active')->count() }}
Unassigned Available: {{ $stats['unassigned_available'] }}
@if($clients->count() > 0)
@foreach($clients as $index => $client) @endforeach
# Company Contact Premium Renewal Date Status Added Date Actions
{{ $loop->iteration }} {{ $client->company_name }} @if($client->policy_number)
Policy: {{ $client->policy_number }} @endif
{{ $client->contact_person ?? 'N/A' }} @if($client->email)
{{ $client->email }} @endif
{{ $client->phone ?? 'N/A' }}
{{ number_format($client->premium_amount ?? 0) }} BDT
Created: {{ $client->created_at->format('d M Y') }}
@if($client->renewal_date) {{ $client->renewal_date->format('d M Y') }} @if($client->renewal_date && $client->renewal_date->diffInDays(now()) <= 30)
⚠ Upcoming renewal @endif @else N/A @endif
{{ ucfirst($client->status) }}
@if($client->created_by == Auth::id()) Added by me @endif
{{ $client->created_at->format('d M Y') }}
{{ $client->created_at->diffForHumans() }}
Log Activity
{{ $clients->appends(request()->query())->links() }}
@else

No clients assigned to you yet.

Add Your First Client @if($stats['unassigned_available'] > 0) Request Unassigned Clients @endif
@endif
@endsection