{{-- | Customer profile, rendered server-side and injected into the drawer. | | Every section is driven by real records. Where a customer genuinely has | nothing — no address, no notes, no verifications yet — the section says so | plainly instead of being hidden, because a missing section reads as a bug and | an invented one is worse. --}} @php $status = $customer->licenseStatus(); $revenue = $customer->revenue(); @endphp
{{-- ── Identity ────────────────────────────────────────────── --}}

{{ $customer->company_name }}

{{ $customer->name }}

{{-- ── At a glance ─────────────────────────────────────────── --}}
@foreach ([ ['Licences', $customer->licenses->count()], ['Domains', $customer->domains->count()], ['Revenue', 'Rs ' . number_format($revenue)], ] as [$label, $value])

{{ $label }}

{{ $value }}

@endforeach
{{-- ── Contact ─────────────────────────────────────────────── --}}

Contact

{{ $customer->mobile ?: 'No phone number on file' }}
{{ $customer->address ?: 'No address on file' }}
{{-- ── Licences ────────────────────────────────────────────── --}}

Licences

@forelse ($customer->licenses as $license)
Package: {{ $license->package?->name ?? '—' }} Expires: {{ $license->expires_at?->format('d M Y') ?? '—' }} Activated: {{ $license->activated_at?->format('d M Y') ?? 'Not yet' }} Value: Rs {{ number_format((float) ($license->package->price ?? 0)) }}
@empty

No licences issued to this customer yet.

@endforelse
{{-- ── Domains ─────────────────────────────────────────────── --}}

Domains

@forelse ($customer->domains as $domain)

{{ $domain->domain }}

{{ $domain->cms_version ? 'CMS v'.$domain->cms_version : 'Version not reported' }}

{{ $domain->last_verification_at ? $domain->last_verification_at->diffForHumans() : 'Never verified' }}
@empty

No installation has activated against this customer yet.

@endforelse
{{-- ── Verification history ────────────────────────────────── --}}

Verification history

@forelse ($verifications as $log)
{{ $log->domain ?: '—' }} {{ $log->created_at?->diffForHumans() }}
@empty

No verification calls recorded yet.

@endforelse
{{-- ── Activity / audit ────────────────────────────────────── --}}

Recent activity

@forelse ($activity as $log)
{{ str_replace('_', ' ', $log->event) }} {{ $log->created_at?->diffForHumans() }}
@if ($log->message)

{{ $log->message }}

@endif
@empty

Nothing has happened on this account yet.

@endforelse
{{-- ── Notes ───────────────────────────────────────────────── --}}

Notes

@if ($customer->notes)

{{ $customer->notes }}

@else

No notes recorded.

@endif
Edit customer Licences

Customer since {{ $customer->created_at?->format('d M Y') }}