@extends('layouts.app') @section('title', $client->name) @section('content') @php $hasOutstanding = !empty($outstandingByCurrency); @endphp
{{ $client->email }}
Proposals
{{ $totalProposals }}
Total Billed
@if (empty($totalBilledByCurrency))—
@else @foreach ($totalBilledByCurrency as $cur => $amount){{ $currencySymbols[$cur] ?? $cur }} {{ number_format($amount, 2) }}
@endforeach @endifTotal Paid
@if (empty($totalPaidByCurrency))—
@else @foreach ($totalPaidByCurrency as $cur => $amount){{ $currencySymbols[$cur] ?? $cur }} {{ number_format($amount, 2) }}
@endforeach @endifOutstanding
@if (!$hasOutstanding)Settled
@else @foreach ($outstandingByCurrency as $cur => $amount){{ $currencySymbols[$cur] ?? $cur }} {{ number_format($amount, 2) }}
@endforeach @endifRecent Proposals
View all →No proposals yet
| Title / Project | Amount | Status | Valid Until | |
|---|---|---|---|---|
| {{ $proposal->title ?? $proposal->project->title ?? '—' }} | {{ $currencySymbols[$propCur] ?? $propCur }} {{ number_format($proposal->amount, 2) }} | {{ ucfirst($propSv) }} | {{ $proposal->valid_until->format('d M Y') }} | View → |
Recent Invoices
View all →No invoices yet
| Invoice # | Amount | Status | Due Date | |
|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invSymbol }} {{ number_format($invoice->amount, 2) }} | {{ $invLabel }} | {{ $invoice->due_date->format('d M Y') }} | View → |
Contact Information
Name
{{ $client->name }}
Phone
{{ $client->phone ?? '—' }}
Address
@if ($client->address){{ $client->address }}
@else—
@endifInternal Notes
{{ $client->notes }}
Projects
@if ($client->projects->isEmpty())No projects yet
@else{{ $project->title }}
{{ ucfirst(str_replace('_', ' ', $projectSv)) }}Activity
Member since
{{ $client->created_at->format('d M Y') }}
Proposals
{{ $totalProposals }} {{ $totalProposals !== 1 ? 'proposals' : 'proposal' }}
Invoices
{{ $totalInvoices }} {{ $totalInvoices !== 1 ? 'invoices' : 'invoice' }}
Last proposal
{{ $client->proposals->sortByDesc('created_at')->first()?->created_at?->diffForHumans() ?? '—' }}
Last payment
{{ $client->invoices->flatMap->payments->sortByDesc('paid_at')->first()?->paid_at?->diffForHumans() ?? '—' }}