@extends('layouts.app') @section('title', 'Client Management') @section('content')

{{ \App\Models\Client::count() }}

Total Clients

{{ \App\Models\Client::where('status', 'active')->count() }}

Active Clients

{{ \App\Models\Client::where('type', 'individual')->count() }}

Individual Clients

{{ \App\Models\Client::where('type', 'group')->count() }}

Group Clients

@forelse($clients as $client) @empty @endforelse
CLIENT ID CLIENT INFORMATION PHONE ID NUMBER TYPE STATUS CREATED ACTIONS
{{ $client->client_number }}
@if($client->photo) {{ $client->full_name }} @else
@endif
{{ $client->full_name }}
{{ $client->email }}
{{ $client->phone }}
{{ $client->id_number }}
@if($client->type == 'group') Group @else Individual @endif @if($client->status == 'active') Active @elseif($client->status == 'inactive') Inactive @elseif($client->status == 'suspended') Suspended @else Blacklisted @endif
{{ $client->created_at->format('M d, Y') }}
{{ $client->created_at->diffForHumans() }}

No clients found

Get started by adding your first client to the system.

Add New Client
@if($clients->hasPages())
Showing {{ $clients->firstItem() }} to {{ $clients->lastItem() }} of {{ $clients->total() }} clients
{{ $clients->links() }}
@endif
@endsection