{{-- Partial: _unit_payment_plans.blade.php Uses fetch() so there's no nested
conflict with the unit edit form. Variables needed: $plots — PlotDetail model (with paymentPlans loaded) $allPlans — active PaymentPlan collection (with milestones) --}}
Payment Plans
Selected plans appear on the buyer-facing unit page
@if($allPlans->isEmpty())
No active payment plans yet. Create one first →
@else @php $assignedIds = $plots->paymentPlans->pluck('id')->toArray(); @endphp
@foreach($allPlans as $plan) @php $checked = in_array($plan->id, $assignedIds); @endphp @endforeach
@endif