@extends('layouts.tenant') @section('title', 'Clients') @section('content')
Manage your client relationships and information
Total Clients
{{ number_format($stats['total_clients']) }}
Active Clients
{{ number_format($stats['active_clients']) }}
Inactive Clients
{{ number_format($stats['inactive_clients']) }}
This Month
{{ number_format($stats['clients_this_month']) }}
| Name @if(request('sort_by') === 'name') @endif | Email @if(request('sort_by') === 'email') @endif | Phone | Company @if(request('sort_by') === 'company') @endif | Status | Created @if(request('sort_by') === 'created_at') @endif | Actions |
|---|---|---|---|---|---|---|
|
{{ strtoupper(substr($client->name, 0, 1)) }}
{{ $client->name }}
@if($client->company)
{{ $client->company }}
@endif
|
{{ $client->email }}
|
{{ $client->phone ?: 'N/A' }} | {{ $client->company ?: 'N/A' }} | @php $statusClasses = [ 'active' => 'bg-green-100 text-green-800', 'inactive' => 'bg-yellow-100 text-yellow-800', 'archived' => 'bg-gray-100 text-gray-800', ]; @endphp {{ ucfirst($client->status) }} | {{ $client->created_at->format('M d, Y') }} |
Showing {{ $clients->firstItem() }} to {{ $clients->lastItem() }} of {{ $clients->total() }} results
@if(request()->hasAny(['search', 'status', 'sort_by'])) No clients match your current filters. @else Get started by adding your first client. @endif