@foreach (\Vanguard\Plugins\Vanguard::availablePlugins() as $plugin) @include('partials.sidebar.items', ['item' => $plugin->sidebar()]) @if (isset($plugin) && method_exists($plugin, 'sidebar') && $plugin->sidebar() && $plugin->sidebar()->getTitle() === 'Back to Office Reports') @include('partials.sidebar.items', ['item' => (object) [ 'authorize' => fn($user) => true, 'getActivePath' => fn() => 'data-collection*', 'getHref' => fn() => route('data-collection.index'), 'isDropdown' => fn() => false, 'getIcon' => fn() => 'bi bi-ui-checks-grid', 'getTitle' => fn() => 'Data Collection', ]]) @endif @if (isset($plugin) && method_exists($plugin, 'sidebar') && $plugin->sidebar() && $plugin->sidebar()->getTitle() === 'Field Reports')
  • Task Management
    • Digital Logsheet
  • @endif @endforeach @include('partials.sidebar.items', ['item' => (object) [ 'authorize' => fn($user) => true, 'getActivePath' => fn() => 'hr-compliance*', 'getHref' => fn() => '#hr-compliance', 'isDropdown' => fn() => true, 'getIcon' => fn() => 'bi bi-people', 'getTitle' => fn() => 'HR & Compliance', 'children' => fn() => [ (object) [ 'authorize' => fn($user) => true, 'getActivePath' => fn() => 'nda*', 'getHref' => fn() => route('nda.show'), 'isDropdown' => fn() => false, 'getIcon' => fn() => 'bi bi-file-earmark-lock', 'getTitle' => fn() => 'Employee NDA', ], (object) [ 'authorize' => fn($user) => true, 'getActivePath' => fn() => 'policy*', 'getHref' => fn() => route('policy.acknowledgement'), 'isDropdown' => fn() => false, 'getIcon' => fn() => 'bi bi-journal-check', 'getTitle' => fn() => 'HR Policy', ], (object) [ 'authorize' => fn($user) => true, 'getActivePath' => fn() => 'document-acknowledgements*', 'getHref' => fn() => '#document-acknowledgements', 'isDropdown' => fn() => true, 'getIcon' => fn() => 'bi bi-file-earmark-check', 'getTitle' => fn() => 'Document Acknowledgements', 'children' => fn() => [ (object) [ 'authorize' => fn($user) => true, 'getActivePath' => fn() => 'document-acknowledgements/assignments*', 'getHref' => fn() => route('document_acknowledgements.assignments.index'), 'isDropdown' => fn() => false, 'getIcon' => fn() => 'bi bi-list-ul', 'getTitle' => fn() => 'My Documents', ], (object) [ 'authorize' => fn($user) => $user->hasPermission('compliance.view'), 'getActivePath' => fn() => 'compliance/document-acknowledgements*', 'getHref' => fn() => route('compliance.document_acknowledgements.index'), 'isDropdown' => fn() => false, 'getIcon' => fn() => 'bi bi-gear', 'getTitle' => fn() => 'Manage Documents', ], (object) [ 'authorize' => fn($user) => $user->hasPermission('compliance.create'), 'getActivePath' => fn() => 'compliance/document-acknowledgements/create*', 'getHref' => fn() => route('compliance.document_acknowledgements.create'), 'isDropdown' => fn() => false, 'getIcon' => fn() => 'bi bi-plus-circle', 'getTitle' => fn() => 'Create Document', ], ], ], ] ]]) @include('partials.sidebar.items', ['item' => (object) [ 'authorize' => fn($user) => true, 'getActivePath' => fn() => 'coach-requisitions*', 'getHref' => fn() => url('coach-requisitions'), 'isDropdown' => fn() => false, 'getIcon' => fn() => 'bi bi-person-lines-fill', 'getTitle' => fn() => 'Requisition', ]]) @include('partials.sidebar.items', ['item' => (object) [ 'authorize' => fn($user) => true, 'getActivePath' => fn() => 'meetings*', 'getHref' => fn() => url('meetings'), 'isDropdown' => fn() => false, 'getIcon' => fn() => 'bi bi-calendar-event', 'getTitle' => fn() => 'Meetings', ]])