@extends('layouts.user_app') @section('content') @if (session()->has('message'))
{{ session()->get('message') }}
@endif @if (session()->has('error'))
{{ session()->get('error') }}
@endif @php $residence_choose = Session::has('residence_choose')? Session::get('residence_choose'):'no'; @endphp
@csrf

1. Address*

@error('address')
{{ $message }}
@enderror

2. Do you have a number, a side, a unit, or a lot number associated with your residence?

  • @error('unit_no')
    {{ $message }}
    @enderror
    @error('gate_code')
    {{ $message }}
    @enderror

3. Applicant's Name*

@error('first_name')
{{ $message }}
@enderror
@error('last_name')
{{ $message }}
@enderror

4. Contact No.*

@error('contact_no')
{{ $message }}
@enderror

5. Email Address.*

@error('email')
{{ $message }}
@enderror

6. How many people live in your household?

(This includes the adults permanently living there and the person completing this application.)
@php $max_age = Session::get('max_age'); Session::forget('max_age'); @endphp

7.How many members of the household will be {{ $max_age}} years of age or under on or before Christmas Day of this year?

8. What is your relationship to the children?

@error('relwithchildern')
{{ $message }}
@enderror

9. Please provide information on each child?*

@php $no_of_child = (Session::has('child_no'))?Session::get('child_no'):1; Session::forget('child_no') ; @endphp @for($i=1;$i<=$no_of_child;$i++)

Child {{$i}}

@php $f_err = (Session::has('child_f_name'))? 'Please enter atleast one child first name' : ''; Session::forget('child_f_name') ; @endphp
{{ $f_err }}
@php $l_err = (Session::has('child_l_name'))? 'Please enter atleast one child last name' : ''; Session::forget('child_l_name') ; @endphp
{{ $l_err }}
{{-- --}} @php $g_err = (Session::has('child_gender'))? 'Please enter atleast one child gender' : ''; Session::forget('child_gender') ; @endphp
{{ $g_err }}
@php $dob_err = (Session::has('child_dob'))? 'Please enter atleast one child DOB' : ''; Session::forget('child_dob') ; @endphp
{{ $dob_err }}
@endfor

10. Would you like to pickup your Blue Santa package or would you like it delivered to the address above?*

  • @php $settings =Session::has('settings')?Session::get('settings')[0]:[]; $available_dates = (explode(",",(data_get($settings,'pickup_dates')))); @endphp @if(!empty($available_dates)) @foreach($available_dates as $key => $value)
  • @endforeach @endif @error('pickup_custom_date')
    {{ $message }}
    @enderror
@error('theaddress')
{{ $message }}
@enderror
@endsection