{{-- Proposals tab content (standalone, no card wrapper) --}} @php($leadId = $lead->id ?? request()->get('lead_id')) @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