@extends('web.master') @section('title') {{ __('registration') }} @endsection @section('content')
@if ($registration)
{{ isset($registration->tag) ? $registration->tag : 'Our Photos' }} {{ isset($registration->heading) ? $registration->heading : 'Please complete the form below to enroll in our programs at school. Provide accurate and detailed information to help us process your registration efficiently and ensure you receive the best.' }}
{{ isset($registration->tag) ? $registration->tag : 'Student Registration Form' }}

@csrf
{!! Form::text('first_name', null, ['placeholder' => __('first_name'), 'class' => 'form-control', 'required']) !!}
{!! Form::text('last_name', null, ['placeholder' => __('last_name'), 'class' => 'form-control', 'required']) !!}
{!! Form::number('mobile', null, [ 'placeholder' => __('mobile'), 'class' => 'form-control mobile', 'min' => 7, ]) !!}

{!! Form::text('dob', null, [ 'placeholder' => __('dob'), 'class' => 'datepicker-popup-no-future form-control', 'required', ]) !!}
{!! Form::text('admission_no', $admission_no, [ 'readonly' => true, 'placeholder' => __('gr_number'), 'class' => 'form-control', 'required', ]) !!}
{!! Form::text('admission_date', $admission_date, [ 'placeholder' => __('admission_date'), 'class' => 'datepicker-popup-no-future form-control', 'required', 'readonly', ]) !!}
{!! Form::textarea('current_address', null, [ 'placeholder' => __('current_address'), 'class' => 'form-control', 'id' => 'current_address', 'rows' => 2, 'required', ]) !!}
{!! Form::textarea('permanent_address', null, [ 'placeholder' => __('permanent_address'), 'class' => 'form-control', 'id' => 'permanent_address', 'rows' => 2, 'required', ]) !!}
@foreach ($studentFields as $row) @if ($row->type === 'text' || $row->type === 'number')
' : '' !!} is_required === 1 ? 'required' : '' }}>
@endif @if ($row->type === 'dropdown')
' : '' !!}
@endif {{-- @if ($row->type === 'radio')
' : '' !!}
@foreach (json_decode($row->default_values) as $options) @if ($options != null)
@endif @endforeach
@endif --}} @if ($row->type === 'radio')
' : '' !!}
@foreach (json_decode($row->default_values) as $options) @if ($options != null) @endif @endforeach
@endif @if($row->type==="checkbox")
': '' !!}
@foreach(json_decode($row->default_values) as $options) @if($options != null)
@endif @endforeach
@endif @if ($row->type === 'textarea')
' : '' !!}
@endif @if ($row->type === 'file')
' : '' !!} is_required === 1 ? 'required' : '' }} />
@endif @endforeach
@php $site_key = DB::table('settings')->where('type', 'recaptcha_site_key')->pluck('message')->first(); $status = DB::table('settings')->where('type', 'recaptcha_status')->pluck('message')->first(); @endphp @if($status == 1)
@else @endif
@endif
@endsection @section('script') @endsection