| Conditions | 4 |
| Paths | 6 |
| Total Lines | 23 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function body() |
||
| 19 | { |
||
| 20 | $layout = \atk4\ui\View::addTo($this)->addStyle('max-width:1200px;margin:auto;'); |
||
| 21 | \atk4\ui\Header::addTo($layout, [__($this->label)]); |
||
| 22 | $segment = \atk4\ui\View::addTo($layout, ['ui' => 'segment']); |
||
| 23 | |||
| 24 | $sections = []; |
||
| 25 | /** |
||
| 26 | * @var SystemSettingsJoint $joint |
||
| 27 | */ |
||
| 28 | foreach (SystemSettingsJoint::collect() as $joint) { |
||
| 29 | $sections[$joint->section()][$joint->label()] = $joint; |
||
| 30 | } |
||
| 31 | |||
| 32 | ksort($sections); |
||
| 33 | |||
| 34 | foreach ($sections as $sectionName => $sectionJoints) { |
||
| 35 | \atk4\ui\Header::addTo($segment, [$sectionName]); |
||
| 36 | |||
| 37 | ksort($sectionJoints); |
||
| 38 | |||
| 39 | foreach ($sectionJoints as $joint) { |
||
| 40 | $segment->add($joint->button()); |
||
| 41 | } |
||
| 45 |