@extends('layouts.app') @section('title', $client->display_name) @section('content')

{{ $client->display_name }}

Client Details

Client Information

Contact Person
{{ $client->contact_person_name }}
Company Name
{{ $client->company_name }}
Email
@if($client->email) {{ $client->email }} @else Not provided @endif
Phone
@if($client->phone) {{ $client->phone }} @else Not provided @endif
Company Address
{{ $client->company_address }}

Client Statistics

Total Invoices
{{ $client->invoices->count() }}
Paid Invoices
{{ $client->invoices->where('status', 'paid')->count() }}
Total Quotations
{{ $client->quotations->count() }}
Approved Quotations
{{ $client->quotations->where('status', 'approved')->count() }}
Total Amount
${{ number_format($client->invoices->sum('grand_total'), 2) }}

Quick Actions

Create New Invoice Create New Quotation

Created

{{ $client->created_at->format('M d, Y \a\t h:i A') }}

Last Updated

{{ $client->updated_at->format('M d, Y \a\t h:i A') }}

Recent Invoices

View All
@if($client->invoices->count() > 0) @foreach($client->invoices->take(5) as $invoice) @endforeach
Invoice # Date Amount Status Actions
{{ $invoice->invoice_number }} {{ $invoice->invoice_date->format('M d, Y') }} ${{ number_format($invoice->grand_total, 2) }} {{ ucfirst($invoice->status) }}
@else
No invoices found for this client. Create first invoice
@endif

Recent Quotations

View All
@if($client->quotations->count() > 0) @foreach($client->quotations->take(5) as $quotation) @endforeach
Quotation # Date Valid Until Amount Status Actions
{{ $quotation->quotation_number }} {{ $quotation->quotation_date->format('M d, Y') }} {{ $quotation->valid_until_date->format('M d, Y') }} ${{ number_format($quotation->grand_total, 2) }} {{ ucfirst(str_replace('_', ' ', $quotation->status)) }} @if($quotation->canBeConvertedToInvoice())
@csrf
@endif
@else
No quotations found for this client. Create first quotation
@endif
@endsection