@extends('frontend::layouts.master') @section('content') @if (!empty($scholarship)) @if (!empty($scholarship['name'])) {!! $scholarship['name'] ?? '' !!} @endif {!! $scholarship['detail'] ?? '' !!} @lang('frontend::lang.register_interest_to_apply') @endif {{ $overview['name'] ?? '' }} {!! $overview['detail'] ?? '' !!} @if (!empty($should_apply['dt']) || !empty($should_apply['content'])) @if (!empty($should_apply['dt']['image'])) @endif @if (!empty($should_apply['dt']['name'])) {!! $should_apply['dt']['name'] ?? '' !!} @endif @if (!empty($should_apply['dt']['desc'])) {!! $should_apply['dt']['desc'] ?? '' !!} @endif @if (!empty($should_apply['content']['list'])) @foreach ($should_apply['content']['list'] as $content) {{-- --}} {!! $content['name'] ?? '' !!} {!! $content['desc'] ?? '' !!} @endforeach @endif @endif @if (!empty($expectations)) @if (!empty($expectations['name'])) {!! $expectations['name'] ?? '' !!} @endif {!! $expectations['detail'] ?? '' !!} @endif @if (!empty($why_myis)) @if (!empty($why_myis['image'])) @endif {!! $why_myis['desc'] ?? '' !!} {!! $why_myis['detail'] ?? '' !!} @endif @if (!empty($pathways['content']) || !empty($pathways['dt'])) {!! $pathways['dt']['name'] ?? '' !!} {!! $pathways['dt']['detail'] ?? '' !!} @if (!empty($pathways['content']['list'])) @foreach ($pathways['content']['list'] as $k => $list) {!! $list['name'] ?? '' !!} {!! $list['desc'] ?? '' !!} {!! $list['detail'] ?? '' !!} @endforeach @endif @endif @if (!empty($application_process['dt']) || !empty($application_process['content'])) {!! $application_process['dt']['name'] ?? '' !!} {!! $application_process['dt']['desc'] ?? '' !!} @if (!empty($application_process['content']['list'])) @php $steps = $application_process['content']['list']; $stepIndex = 0; @endphp @foreach (array_chunk($steps, 4) as $chunk) @foreach ($chunk as $ls) @php $stepIndex++; @endphp {{ sprintf('%02d', $stepIndex) }} {!! $ls['name'] ?? '' !!} {!! $ls['detail'] ?? '' !!} @endforeach @endforeach @endif @if (!empty($application_process['dt']['publish_at'])) @lang('frontend::lang.deadline_to_apply') {{ date('d M Y', strtotime($application_process['dt']['publish_at'])) }} @endif @endif {!! $register_interest_form['dt']['name'] ?? '' !!} {!! $register_interest_form['dt']['desc'] ?? '' !!} {!! $register_interest_form['dt']['detail'] ?? '' !!} @lang('frontend::lang.submission_successful') @lang('frontend::lang.thank_you_for_your_interest') @lang('frontend::lang.submit_another_inquiry') routeIs('lang.*') ? route('lang.frontend.register_interest', ['locale' => app()->getLocale()]) : route('frontend.register_interest') }}', { method: 'POST', headers: { 'Accept': 'application/json' }, body: payload }) .then(async (response) => { const data = await response.json(); if (!response.ok) { throw new Error(data.message || 'Submit failed'); } formSubmitted = true; form.reset(); if (window.grecaptcha && window.scholarshipCaptchaWidgetId !== undefined) { window.grecaptcha.reset(window.scholarshipCaptchaWidgetId); const captchaInput = document.getElementById('captcha_token'); if (captchaInput) captchaInput.value = ''; } if (window.toggleSubmitButtonState) { window.toggleSubmitButtonState(!hasRecaptcha); } }) .catch((error) => { alert(error.message || 'Unable to submit form.'); }); " class="p-10 md:p-12"> @csrf {!! __('frontend::lang.student_information') !!} @lang('frontend::lang.student_name') * @lang('frontend::lang.student_nickname') * @lang('frontend::lang.student_date_of_birth') * @lang('frontend::lang.student_nationality') * @lang('frontend::lang.student_current_school') * {!! __('frontend::lang.parent_information') !!} @lang('frontend::lang.parent_name') * @lang('frontend::lang.parent_phone_number') * @lang('frontend::lang.parent_email') * @if (!empty($option)) @lang('frontend::lang.referral_source') * @foreach ($option as $item) {!! $item['name'] ?? '' !!} @endforeach @endif @lang('frontend::lang.by_submitting') {!! $page_init['policy']['name'] ?? '' !!}. @lang('frontend::lang.submit_application') @endsection
{!! $content['desc'] ?? '' !!}
{!! $why_myis['desc'] ?? '' !!}
{!! $list['desc'] ?? '' !!}
@lang('frontend::lang.deadline_to_apply') {{ date('d M Y', strtotime($application_process['dt']['publish_at'])) }}
{!! $register_interest_form['dt']['detail'] ?? '' !!}
@lang('frontend::lang.thank_you_for_your_interest')