<?php
require_once __DIR__ . '/../../includes/init.php';
middleware();

$role = getSession('role');

// PHP 7.x compatible - use if/else instead of match
if ($role === 'mr') {
    include __DIR__ . '/mr.php';
} elseif (in_array($role, array('je', 'sdo', 'exn'), true)) {
    include __DIR__ . '/staff.php';
} else {
    include __DIR__ . '/admin.php';
}
?>
