{{-- resources/views/admin/clients/show.blade.php --}} @extends('admin.layouts.admin') @section('title', $client->display_name) @section('page-title', $client->display_name) @section('admin-content')
← Back to Clients
+ Add Project + Create Invoice Edit
{{-- Client info --}}

Client Details

@foreach([ ['Contact', $client->contact_name], ['Company', $client->company_name ?: '—'], ['Email', $client->email], ['Phone', $client->phone ?: '—'], ['Industry',$client->industry ?: '—'], ['Status', $client->is_active ? '✓ Active' : '✗ Inactive'], ['Portal', $client->user ? $client->user->email : 'No account'], ] as [$label,$value])
{{ $label }}
{{ $value }}
@endforeach
{{-- Quick stats --}}

Overview

@foreach([ ['Projects', $client->projects->count(), '#2d3aff'], ['Open Tickets',$client->tickets->whereIn('status',['open','in_progress'])->count(),'#dc2626'], ['Invoices', $client->invoices->count(), '#6366f1'], ['Paid', $client->invoices->where('status','paid')->count(), '#059669'], ] as [$label,$count,$color])
{{ $count }}
{{ $label }}
@endforeach
@if($client->notes)

Internal Notes

{{ $client->notes }}

@endif
{{-- Projects --}} @if($client->projects->count())

Projects

@foreach($client->projects as $p) @endforeach
TitleStatusProgressDeadlineActions
{{ $p->title }} {{ ucfirst(str_replace('_',' ',$p->status)) }}
{{ $p->progress }}%
{{ $p->deadline?->format('d M Y') ?? '—' }} Manage
@endif {{-- Recent invoices --}} @if($client->invoices->count())

Invoices

@foreach($client->invoices as $inv) @endforeach
Invoice #TitleTotalStatusActions
{{ $inv->invoice_number }} {{ Str::limit($inv->title,30) }} {{ $inv->currency_symbol }}{{ number_format($inv->total,2) }} {{ ucfirst($inv->status) }} View
@endif @endsection