@extends('layouts.base') @section('title', 'කොළඹ මහා නගර සභා - ශිෂ්‍ය පාසල් ආධාර 2026') @push('styles') @endpush @section('content') {{-- Pass $currentStep from controller; defaults to 0 for fresh load --}} @php $currentStep = $currentStep ?? 0; if ($errors->any()) { $stepForField = function (string $field): int { if (preg_match('/^(my_|spouse_|guardian_|addr_|residence_type|ref_box)/', $field)) { return 0; } if (str_starts_with($field, 'children')) { return 1; } if (preg_match('/^(aid|trade_|declaration|parent_signature|declaration_date|number_of_children|phone|whatsapp|email)/', $field)) { return 2; } return 3; }; $currentStep = min(array_map($stepForField, $errors->keys())); } @endphp @php $validationErrors = $errors->getMessages(); $headerDivisionParts = explode('-', old('addr_colombo', ''), 2); $headerDivision1 = old('ref_box1', $headerDivisionParts[0] ?? '') ?: '—'; $headerDivision2 = old('ref_box2', $headerDivisionParts[1] ?? '') ?: '—'; @endphp
{{-- ══ HEADER ══ --}}
Colombo Municipal Council

කොළඹ මහා නගර සභා
මහජන ආධාර දෙපාර්තමේන්තුව

{{--
2026 වසර සදහා කොළඹ මහා නගර සභාව ශිෂ්‍ය පාසල් අහෝෂ
අයදුම් පත්‍ර ඉල්ලීම
--}}
අංකය
කොට්ඨාසය
{{-- ══ PROGRESS BAR ══ --}}
@foreach(['01. ඉල්ලුම්කරුගේ විස්තර', '03. පාසල් යන දරුවන්ගේ විස්තර', '04. දැනට ලභාගන්නා සහනාධාර', '05. සාක්ෂිකරුවා සහ නිලධාරී'] as $i => $label)
{{ $label }}
@endforeach
{{-- ══ FORM ══ --}}
@csrf @include('cmc.partials.step-01') @include('cmc.partials.step-02') @include('cmc.partials.step-03') @include('cmc.partials.step-04') {{-- ══ SUCCESS SCREEN ══ --}}
✓

ඔබේ අයදුම්පත සාර්ථකව ඉදිරිපත් කෙරිණ!

ඔබගේ 2026 ශිෂ්‍ය පාසල් ආධාර අයදුම්පත ලැබී ඇත.
කාර්යාලය විසින් ඔබව ඉක්මනින් සම්බන්ධ කරගනු ඇත.
ස්තූතිය!

← නව අයදුම්පත්
{{-- ══ NAVIGATION ══ --}}
පියවර 1 / 5
@endsection @push('scripts') @endpush