@php($leadId = $lead->id ?? request()->get('lead_id'))
Assigned Users
    @foreach(($assignedUsers ?? []) as $u)
  • {{ $u['name'] }} @if(!empty($u['class'])) ({{ $u['class'] }})@endif
  • @endforeach
Assign
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))
Duplicate Delete Lead Manage Fields @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