@php $form = 'pension'; $pensionLocations = $pensionLocations ?? \App\Models\Location::query()->active()->get()->filter->hasPension(); $plans = $pensionLocations->mapWithKeys(fn ($l) => [$l->id => collect($l->pensionList())->map(fn ($p) => ['name' => $p['name'], 'label' => $p['name'].' · $'.number_format((float) $p['price'], 0).(($p['iva_included'] ?? false) ? ' con IVA' : '')])->values()]); @endphp
@include('site.forms.sent', ['title' => 'Recibimos tu solicitud de pensión.']) @include('site.forms.guard')
@include('site.forms.field', ['name' => 'location_id', 'label' => 'Sucursal', 'type' => 'select', 'options' => $pensionLocations->pluck('name', 'id')->all(), 'selected' => $selected ?? null, 'placeholder' => 'Elige una sucursal', 'attrs' => 'data-plan-source'])
@error('plan')

{{ $message }}

@enderror
@include('site.forms.field', ['name' => 'vehicle', 'label' => 'Vehículo', 'type' => 'select', 'options' => ['Auto' => 'Auto', 'Camioneta' => 'Camioneta', 'Moto' => 'Moto']]) @include('site.forms.field', ['name' => 'start_date', 'label' => 'Fecha de inicio', 'type' => 'date', 'optional' => true, 'min' => now()->toDateString()]) @include('site.forms.field', ['name' => 'name', 'label' => 'Nombre', 'autocomplete' => 'given-name', 'max' => 80]) @include('site.forms.field', ['name' => 'last_name', 'label' => 'Apellido', 'autocomplete' => 'family-name', 'max' => 80]) @include('site.forms.field', ['name' => 'phone', 'label' => 'Celular', 'type' => 'tel', 'autocomplete' => 'tel-national', 'inputmode' => 'numeric', 'max' => 14, 'hint' => '10 dígitos']) @include('site.forms.field', ['name' => 'email', 'label' => 'Correo', 'type' => 'email', 'autocomplete' => 'email']) @include('site.forms.field', ['name' => 'message', 'label' => 'Comentarios', 'type' => 'textarea', 'optional' => true, 'rows' => 3, 'max' => 1000, 'class' => 'field--full'])
@include('site.forms.footer', ['submit' => 'Enviar solicitud de pensión'])