<?php
/**
 * Dashboard Role Configuration
 *
 * Defines role-specific settings for dashboard views to eliminate code duplication.
 *
 * Configuration Schema:
 * - title: Dashboard title displayed in navbar
 * - columns: Column visibility settings
 *   - lab: Show "No Lab" column (SP_ACCESSNUMBER)
 *   - resto: Show "ResTo" column (ODR_CRESULT_TO)
 *   - register: Show "No Register" column (HOSTORDERNUMBER)
 * - sampleDialog: Sample dialog behavior
 *   - commentEditable: Allow editing the comment textarea
 *   - showCollectButtons: Show Collect/Un-Coll/Un-Recv buttons
 * - menuItems: Navigation menu items
 */

return [
    'admin' => [
        'title' => 'Admin Dashboard',
        'previewEnabled' => true,
        'sampleDialog' => [
            'commentEditable' => true,
            'showCollectButtons' => true,
            'defaultPrinter' => 'lab',
        ],
        'menuItems' => [
            ['label' => 'Dashboard', 'href' => 'admin', 'icon' => 'chart-bar'],
            ['label' => 'Validate', 'href' => 'admin/validate', 'icon' => 'check-circle'],
            ['label' => 'Reports', 'href' => 'http://glenlis/report2/', 'icon' => 'book'],
        ],
    ],
    'cs' => [
        'title' => 'CS Dashboard',
        'previewEnabled' => false,
        'sampleDialog' => [
            'commentEditable' => false,
            'showCollectButtons' => false,
            'defaultPrinter' => 'reception',
        ],
        'menuItems' => [
            ['label' => 'Dashboard', 'href' => 'cs', 'icon' => 'chart-bar'],
        ],
    ],
    'lab' => [
        'title' => 'Lab Analyst Dashboard',
        'previewEnabled' => true,
        'sampleDialog' => [
            'commentEditable' => true,
            'showCollectButtons' => true,
            'defaultPrinter' => 'lab',
        ],
        'menuItems' => [
            ['label' => 'Dashboard', 'href' => 'lab', 'icon' => 'chart-bar'],
            ['label' => 'Validate', 'href' => 'lab/validate', 'icon' => 'check-circle'],
            ['label' => 'Reports', 'href' => 'http://glenlis/report2/', 'icon' => 'book'],
        ],
    ],
    'phlebo' => [
        'title' => 'Phlebotomist Dashboard',
        'previewEnabled' => false,
        'sampleDialog' => [
            'commentEditable' => false,
            'showCollectButtons' => true,
            'defaultPrinter' => 'phlebo',
        ],
        'menuItems' => [
            ['label' => 'Dashboard', 'href' => 'phlebo/dashboard', 'icon' => 'chart-bar'],
            ['label' => 'Collect Samples', 'href' => 'phlebo/collect', 'icon' => 'vial'],
        ],
    ],
    'superuser' => [
        'title' => 'Superuser Dashboard',
        'previewEnabled' => true,
        'sampleDialog' => [
            'commentEditable' => true,
            'showCollectButtons' => true,
            'defaultPrinter' => 'lab',
        ],
        'menuItems' => [
            ['label' => 'Dashboard', 'href' => 'superuser', 'icon' => 'chart-bar'],
            ['label' => 'Validate', 'href' => 'superuser/validate', 'icon' => 'check-circle'],
            ['label' => 'Users', 'href' => 'superuser/users', 'icon' => 'users'],
            ['label' => 'PDF Batch', 'href' => 'superuser/pdf-batch', 'icon' => 'file-pdf'],
            ['label' => 'Reports', 'href' => 'http://glenlis/report2/', 'icon' => 'book'],
        ],
    ],
];
