{{-- Compliance Organogram — Boxes chart / Tree list of the management hierarchy with rolled-up compliance. From ManagementController@organogram: $tree --}} @extends('layouts.app') @section('title', 'Organogram') @section('content') @include('partials.flash')
account_tree

Compliance Organogram

Reporting hierarchy with rolled-up compliance

{{-- Legend --}}
100% complete Partial Has overdue No courses assigned
@php // Attach CEO to the left of COO; the tree is rooted at COO so its connector drops from COO. $ceoAside = null; $root = $tree; if (($tree['role_key'] ?? '') === 'ceo' && count($tree['children'] ?? []) === 1 && (($tree['children'][0]['role_key'] ?? '') === 'coo')) { $ceoAside = $tree; $root = $tree['children'][0]; } $rootHasChildren = ! empty($root['children']); @endphp {{-- Boxes chart --}}
{{-- Tree list --}} @endsection