{{-- Header --}}

Certificate Configuration

Ensure all details are correct before issuing.
{{-- Section 1: Recipient --}}
1. Recipient Details
@if ($student_id) {{-- Student Selected State --}}
{{ $selectedStudentName }}
Student Selected
@else {{-- Search Input State --}}
@error('student_id') {{ $message }} @enderror {{-- Search Results Dropdown --}} @if (strlen($studentSearch) >= 2)
@if (count($searchResults) > 0) @foreach ($searchResults as $res)
{{ substr($res->name, 0, 1) }}
{{ $res->name }}
{{ $res->student_code }} • {{ $res->phone }}
@endforeach @else
No students found matching "{{ $studentSearch }}"
@endif
@endif @endif
{{-- Section 2: Program Details --}}
2. Program Details
@error('target_id') {{ $message }} @enderror
{{-- Section 3: Validity & Notes --}}
3. Validity & Notes
@if ($has_expiry) @error('expires_at') {{ $message }} @enderror @else
Lifetime Validity (No Expiry)
@endif