<?php require_login();audit('view','PAGE_VIEW','success',null,null,$title??'Page');?><!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title><?=e($title)?> · AFGTracv5</title><link rel="stylesheet" href="<?=e(u('assets/app.css'))?>"></head><body><header><div><b>AFGUARD Tracking Dashboard</b><span><?=e(user()['display_name'])?> · <?=e(user()['role'])?> · <a href="<?=e(u('logout.php'))?>">Logout</a></span></div><nav><?php foreach(['Dashboard'=>'index.php','Assets'=>'assets.php','Receiving'=>'receiving.php','Recertification'=>'recertification.php','Lab Board'=>'lab-board.php','Shipping'=>'shipping.php'] as $n=>$h):?><a href="<?=e(u($h))?>"><?=e($n)?></a><?php endforeach;?><?php if(user()['role']==='admin'):?><a href="<?=e(u('admin-users.php'))?>">Users</a><a href="<?=e(u('admin-audit.php'))?>">Audit</a><a href="<?=e(u('admin-email.php'))?>">Email</a><?php endif;?></nav></header><main><?php if($f=$_SESSION['flash']??null):unset($_SESSION['flash']);?><p class="notice <?=e($f[1])?>"><?=e($f[0])?></p><?php endif;?>