{{-- Mockup of the signed-in app shell (sidebar + topbar) around a page's content, matching partials/sidebar.blade.php and partials/topbar.blade.php. --}} @props([ 'role' => 'admin', 'active' => '', 'title' => '', 'tabs' => [], 'activeTab' => null, 'url' => '', ]) @php $nav = match ($role) { 'principal' => [ ['', [['Dashboard', 'grid-1x2-fill']]], ['Schedules', [['Grade 11', 'calendar3'], ['Grade 12', 'calendar3'], ['Teachers', 'people-fill']]], ['Monitoring', [['Teacher Load', 'speedometer2'], ['Subject Hours', 'clock-history'], ['Readiness', 'clipboard-check']]], ], 'teacher' => [ ['Schedules', [['My Schedule', 'person-badge-fill'], ['Grade 11', 'calendar3'], ['Grade 12', 'calendar3'], ['Teachers', 'people-fill']]], ], default => [ ['', [['Dashboard', 'grid-1x2-fill'], ['Academic Setup', 'journal-text'], ['Teacher Management', 'people-fill'], ['Scheduling', 'calendar3'], ['Reports', 'file-earmark-bar-graph-fill']]], ], }; $bottom = $role === 'admin' ? ['Settings', 'gear-fill'] : ['Change Password', 'key']; [$initials, $name, $roleLabel] = match ($role) { 'principal' => ['ER', 'Elena Ramos', 'Principal'], 'teacher' => ['MS', 'Maria Santos', 'Teacher'], default => ['AD', 'Admin', 'Administrator'], }; $portal = match ($role) { 'principal' => 'Principal Portal', 'teacher' => 'Teacher Portal', default => null, }; @endphp

Class Scheduling System @if ($portal)
{{ $portal }}
@endif
@foreach ($nav as [$label, $items]) @if ($label)
{{ $label }}
@endif @foreach ($items as [$itemLabel, $itemIcon])
@gi($itemIcon, $itemLabel === $active ? '#ffffff' : '#d1d5db') {{ $itemLabel }}
@endforeach @endforeach
@gi($bottom[1], $bottom[0] === $active ? '#ffffff' : '#d1d5db') {{ $bottom[0] }}
@gi('list', '#111827') {{ $title }}
{{-- Right side comes before the tabs in the markup so the PDF's floats line up; flex order restores it on screen. --}}
@gi('book', '#374151') User Guide
@if ($tabs)
@foreach ($tabs as $tab) {{ $tab }} @endforeach
@endif
{{ $slot }}