@php
$toLines = fn ($value) => collect(preg_split('/\r\n|\r|\n/', (string) $value))->map(fn ($l) => trim($l))->filter()->values();
$registerPoints = $toLines($project->register_points ?? '');
if ($registerPoints->isEmpty()) {
$registerPoints = collect([
'Priority booking before public launch',
'Pre-launch pricing - best rates of the project',
'First access to floor plans and unit selection',
'Dedicated sales advisor assigned to your query',
'No obligation - register interest, decide later',
]);
}
$bhkOptions = $toLines($project->bhk_options ?? '');
if ($bhkOptions->isEmpty()) {
$bhkOptions = collect(['2 BHK', '3 BHK', '4 BHK']);
}
$budgetOptions = $toLines($project->budget_options ?? '');
if ($budgetOptions->isEmpty()) {
$budgetOptions = collect(['₹50L – ₹75L', '₹75L – ₹1Cr', '₹1Cr– ₹1.5Cr', '₹1.5Cr+']);
}
@endphp
{{ $project->register_title ?: 'Register Early Interest' }}
{{ $project->register_intro ?: 'Join 240+ families already on the early interest list for '.$project->title.'.' }}
@foreach($registerPoints as $point)
- {{ $point }}
@endforeach