@php($leadId = $lead->id ?? request()->get('lead_id'))
Actions & Proposals
@php($apTab = request()->get('ap_tab')) @php($baseUrl = request()->url()) @php($actionsParams = request()->except('ap_tab')) @php($proposalsParams = $actionsParams + ['ap_tab' => 'proposals']) @php($actionsUrl = $baseUrl . (count($actionsParams) ? ('?'.http_build_query($actionsParams)) : '')) @php($proposalsUrl = $baseUrl . '?' . http_build_query($proposalsParams))
{{-- G-27: In Current Status counter --}} @if(!empty($leadId) && isset($lead) && !empty($lead->status_updated_at)) @php($statusDays = (int)\Carbon\Carbon::parse($lead->status_updated_at)->diffInDays(now()))
In current status: {{ $statusDays }} day{{ $statusDays !== 1 ? 's' : '' }}
@endif
Duplicate Delete Lead Manage Fields {{-- G-26: Board Merchant button --}} @if(!empty($leadId) && isset($lead) && !$lead->is_data_sent_to_onboard) Board Merchant @endif {{-- G-25: Linked Records button --}} @if(!empty($leadId)) @endif @if(isset($lead) && $lead->is_data_sent_to_onboard == 0) Send Lead Data @endif @if(isset($lead) && $lead->is_data_sent_to_onboard == 1)
Lead data sent for onboarding.
@endif
@if(!$leadId)
Save the lead first to manage proposals.
@else
Saved Proposals
Create Proposal
@php($proposals = $leadProposals ?? collect()) @if(!$proposals->count())
No proposals uploaded yet.
@else
@foreach($proposals as $p) @php($file = $p->proposal_file) @endforeach
# Title Description Actions
{{ $loop->iteration }} @php($pTitleFull = $p->title ?: ('Proposal #'.$p->id)) @php($pTitleShort = mb_strlen($pTitleFull) > 35 ? mb_substr($pTitleFull,0,32).'...' : $pTitleFull) {{ $pTitleShort }} @if($p->description) @php($fullDesc = $p->description) @php($truncDesc = \Illuminate\Support\Str::limit($fullDesc,147)) {{ $truncDesc }} @if(mb_strlen($fullDesc) > 147) See more @endif @else @endif
@if($file) @php($downloadUrl = $file['thumb'] ?? $file['path'] ?? $file['original']) @endif
@endif
@endif
@push('styles') @endpush