A{{ $user->address_1 ? ucfirst($user->address_1).',' : '' }} {{ $user->city ? ucfirst($user->city).',' : '' }} {{ $user->zip ? $user->zip : '' }}

E{{ $user->email }}

P+{{ $user->country_id}} {{ $user->contact_number}}

Proposal for:{{ ucfirst($proposal->title) }}


Proposal #{{ str_pad($proposal->proposal_id, 4, '0', STR_PAD_LEFT) }}

Proposal To :{{ ucfirst($proposal->client->user->first_name).' ' .ucfirst($proposal->client->user->last_name) }}

Proposal Date :{{ \Carbon\Carbon::parse($proposal->date)->format('d-m-Y')}}

Project Description

{!! nl2br(ucfirst($proposal->description)) !!}

Other Comments

{!! $proposal->comments ? nl2br(ucfirst($proposal->comments)) : '-' !!}

Refernce Files

@if(count($proposal->attachments)) @foreach($proposal->attachments as $attachment) {{ $attachment->original_name }}

{{ number_format(($attachment->size / 1024), 2) }} KB

@endforeach @else - @endif

Links to Inspiration

@if(count($proposal->links)) @foreach($proposal->links as $link) {{ $link->link }} @endforeach @else - @endif
@if($proposal->quote)

Quote

@php $totalAmount = 0; $taxAmount = 0; @endphp @foreach($proposal->quote->delivarable as $delivarable) @php $totalAmount += $delivarable->cost; @endphp @endforeach

Deliverables

{{ $proposal->quote->type == 'fixed' ? 'Qty' : 'Hrs' }}

Rate

Cost

{{ ucfirst($delivarable->deliverables) }}

{{ $delivarable->quantity }}

{{ $currencySymbol }}{{ number_format($delivarable->rate, 2) }}

{{ $currencySymbol }}{{ number_format($delivarable->cost, 2) }}

Invoice Terms

{!! $proposal->quote->terms !!}

Amount Total

@if($proposal->quote->is_tax == 1) @php $taxAmount = ($totalAmount * $proposal->quote->tax_percentage) / 100; @endphp

Tax ({{ $proposal->quote->tax_percentage }}%)

@endif

{{ $currencySymbol }}{{ number_format($totalAmount, 2) }}

@if($proposal->quote->is_tax == 1)

{{ $currencySymbol }}{{ number_format($taxAmount, 2) }}

@endif

Sub Total

{{ $currencySymbol }}{{ number_format(($totalAmount + $taxAmount), 2) }}

@endif @if(count($serviceData))

Terms & Conditions

@foreach($serviceData as $services) @endforeach

{{ ucfirst(preg_replace("/\([^)]+\)/","", $services['title'])) }}

@foreach($services['conditions'] as $service)

{!! $service['description'] !!}

@endforeach
@endif