@if ($educationDetails->count() > 0) @foreach ($educationDetails as $details)
{{-- Main details column --}}
{{ $details->qualification->name ?? 'Not Specified' }}

Institution: {{ $details->institution ?? 'N/A' }}

Board/University: {{ $details->board ?? 'N/A' }}

Year of Passing: {{ $details->year ?? 'N/A' }}

Grade/Percentage: {{ $details->grade ?? 'N/A' }}

{{-- Action/Document column --}}
{{-- Conditionally show a download button if a document was uploaded --}} @if ($details->file_path_url) View Document @else No document uploaded @endif
@endforeach @else {{-- Message to show if no education details are found --}}

No educational qualifications have been added yet.

@endif