@extends('public.layout.app') @section('title', 'Search') @section('body')
Site-wide search

Find programs, courses, news, and research

Search across the public website, academic catalogue, LMS course records, and research library.

@if($q === '')
Type a keyword to search the public website.
@else
News and events
@forelse($posts as $post) {{ ucfirst($post->type) }} {{ $post->title }} @empty

No matching news or events.

@endforelse
Programs
@forelse($programs as $program) {{ $program->name }} {{ $program->department?->name ?? 'Academic program' }} @empty

No matching programs.

@endforelse
Courses
@forelse($courses as $course)
{{ $course->code ? $course->code . ' - ' : '' }}{{ $course->title }} {{ $course->semester?->program?->name ?? 'Course catalogue' }}
@empty

No matching courses.

@endforelse
Research
@forelse($researchPapers as $paper)
{{ $paper->title }} {{ $paper->author }} | {{ $paper->year }}
@empty

No matching research papers.

@endforelse
@endif
@endsection