@extends('layouts.training_centre_layout') @section('content')

Trainer Information

Add trainer details and upload certificates

@if($trainers->count() > 0) {{-- Assuming x-centre.trainers-card handles the display of $trainers --}} {{-- In edit mode, we only need a next button, not Start Application --}}
@else
Note: Please add at least one trainer.
{{-- Added ID for easier control in JS --}}
@endif
@csrf

Infrastructure

Provide details about training infrastructure

{{-- Number of Classrooms --}}
{{-- Classroom Size Confirmation --}}
@php $classroomConfirmation = old('classroom_size_confirmation', $infrastructure->classroom_size_confirmation ?? ''); @endphp
{{-- Number of Laboratories --}}
{{-- Lab Size Confirmation --}}
@php $labConfirmation = old('lab_size_confirmation', $infrastructure->laboratory_size_confirmation ?? ''); @endphp
{{-- Total Area --}}
{{-- Available Facilities --}}
@foreach ($allFacilities as $facility)
id, old('facilities', $selectedFacilities ?? [])) ? 'checked' : '' }}>
@endforeach
@csrf

Training Programs

Select the training programs you want to offer

{{-- CORRECTED: Looping over $allTrainingPrograms for ALL options --}} @foreach($allTrainingPrograms as $program) @endforeach
@csrf

Documents & Declarations

Upload required documents and agree to terms

@php $docs = [ 'registration_certificate' => ['label' => 'Rent Agreement/Address Proof.', 'type' => 'pdf'], 'utility_bill' => ['label' => 'Utility Bill (Electric, Water)', 'type' => 'pdf'], 'noc_certificate' => ['label' => 'NOC from Local Authority (Optional)', 'type' => 'pdf'], 'building_photos' => ['label' => 'Building Photos', 'type' => 'image'], 'classroom_photos' => ['label' => 'Classroom Photos', 'type' => 'image'], 'lab_photos' => ['label' => 'Laboratory Photos', 'type' => 'image'], 'cctv_photo' => ['label' => 'CCTV Control Room Photo', 'type' => 'image'], 'staff_certificates' => ['label' => 'Staff Qualification Certificates', 'type' => 'pdf'], 'washroom_photos' => ['label' => 'Washroom Photos', 'type' => 'image'], 'classroom_video' => ['label' => 'Classroom Video', 'type' => 'video'], 'lab_video' => ['label' => 'Laboratory Video', 'type' => 'video'], ]; @endphp @foreach($docs as $field => $doc) @php $label = $doc['label']; $type = $doc['type']; $accept = $type === 'pdf' ? '.pdf' : ($type === 'video' ? '.mp4' : '.jpg,.jpeg,.png'); $existingFiles = $uploadedFiles[$label] ?? []; $hasFiles = count($existingFiles) > 0; @endphp
{{ $hasFiles ? count($existingFiles) . ' file(s) uploaded' : 'No file selected' }} @if($hasFiles)
@foreach($existingFiles as $file) View @endforeach
@endif
@endforeach
{{-- Declarations --}}

Declarations

Please confirm all declarations to proceed to submission.
@foreach($declarations as $column => $value) @php $checked = old($column, $value) ? 'checked' : ''; @endphp
@endforeach
{{-- Assumed Laravel components --}} @endsection @section('pages-scripts') @endsection