@vite(['resources/css/app.css', 'resources/js/app.js']) {{-- Mobile Header --}}
AOPN Forms
{{-- Form Card --}}
{{-- Mobile Hero Banner --}}

{{ $form->title }}

{{-- Desktop Header --}} {{-- Mobile Description --}} @if($form->description)

{{ $form->description }}

@endif {{-- Form --}}
@csrf {{-- Honeypot --}}
@foreach($form->fields as $field) @if($field->type === 'heading')

@include('admin.forms.partials.field-icon', ['type' => 'heading']) {{ $field->label }}

@continue @endif @if($field->type === 'divider')
@continue @endif @php $fieldKey = 'field_' . $field->id; @endphp
@if($field->type !== 'consent') @endif @switch($field->type) @case('text') @case('phone') @case('number') @case('url') @case('address')
@include('admin.forms.partials.field-icon', ['type' => $field->type]) is_required ? 'required' : '' }} class="w-full pl-10 pr-4 py-2.5 border border-outline-variant rounded-lg text-sm focus:border-primary focus:ring-2 focus:ring-primary/10 outline-none transition">
@break @case('email')
@include('admin.forms.partials.field-icon', ['type' => 'email']) is_required ? 'required' : '' }} class="w-full pl-10 pr-4 py-2.5 border border-outline-variant rounded-lg text-sm focus:border-primary focus:ring-2 focus:ring-primary/10 outline-none transition">
@break @case('date') is_required ? 'required' : '' }} class="w-full px-4 py-2.5 border border-outline-variant rounded-lg text-sm focus:border-primary focus:ring-2 focus:ring-primary/10 outline-none transition"> @break @case('textarea') @break @case('dropdown') @case('country') @break @case('radio')
@foreach($field->options ?? [] as $option) @endforeach
@break @case('checkbox')
@foreach($field->options ?? [] as $option) @endforeach
@break @case('consent') @break @case('file') @case('image')

{{ $field->type === 'image' ? 'Upload Image' : 'Upload File' }}

{{ $field->type === 'image' ? 'JPG, PNG, GIF up to 10MB' : 'PDF, DOC, XLS, ZIP up to 10MB' }}

is_required ? 'required' : '' }} accept="{{ $field->type === 'image' ? 'image/*' : '.pdf,.doc,.docx,.xls,.xlsx,.csv,.txt,.zip' }}" class="mt-3 text-sm">
@break @endswitch @if($field->help_text)

{{ $field->help_text }}

@endif @error($fieldKey)

{{ $message }}

@enderror
@endforeach
{{-- Footer --}}

© {{ date('Y') }} Association of Outsourcing Professionals of Nigeria. All Rights Reserved.

Verified Identity Secure Application AOPN Standards