@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
Create Proposal

{{ $client->company_name }}

Close

Proposals

{{ $proposals->count() }} total
@if($proposals->count() > 0)
@foreach($proposals as $proposal)

{{ $proposal->title }}

{{ $proposal->reference_number }}

{{ $proposal->status_icon }} {{ ucfirst($proposal->status) }} €{{ number_format($proposal->amount, 2) }}

By {{ $proposal->user->name }} • {{ $proposal->proposal_date->format('M j, Y') }}

Edit
@endforeach
@else

No proposals

Get started by creating a new proposal for this client.

@endif

All Interactions

@php $allInteractions = $this->allInteractions->take(10); @endphp @if($allInteractions->count() > 0)
@foreach($allInteractions as $interaction)
{{ ucfirst($interaction->type) }} {{ $interaction->interaction_date ? \Carbon\Carbon::parse($interaction->interaction_date)->format('M j, Y H:i') : '' }}
{{ $interaction->subject }}
@if($interaction->interactable_type === \App\Models\Proposal::class)
Regarding: @php $proposal = \App\Models\Proposal::find($interaction->interactable_id); @endphp @if($proposal) {{ $proposal->title }} @else Proposal #{{ $interaction->interactable_id }} @endif
@endif
By {{ $interaction->user->name ?? 'Unknown' }}
@if($interaction->description)
{{ $interaction->description }}
@endif
@endforeach
@else

No interactions found

All interactions with this client will appear here.

@endif

Client Statistics

Total Revenue
€{{ number_format($client->total_revenue ?? 0, 2) }}
Total Proposals
{{ $proposals->count() }}
Approved Proposals
{{ $proposals->where('status', 'approved')->count() }}
Client Since
{{ $client->created_at->format('M j, Y') }}

Company Information

@error('company_name')

{{ $message }}

@enderror
@error('status')

{{ $message }}

@enderror
@if($client->reglab_client_id)
@endif

Primary Contact

@error('primary_contact_first_name')

{{ $message }}

@enderror
@error('primary_contact_last_name')

{{ $message }}

@enderror
@error('primary_contact_email')

{{ $message }}

@enderror

Company Contact Information

Address Information

@if(!$use_same_billing_address)
@endif

Management Information

@if(auth()->user()->role === 'admin' || auth()->user()->role === 'superadmin')
@endif