<?php

namespace Modules\OphthalmologyClinic\Http\Controllers;

use Illuminate\Routing\Controller;

/**
 * OphthalmologyClinic DataController — surfaced by the ERP's
 * ModuleUtil::getModuleData(), which merges each installed module's
 * user_permissions() into the role editor. Additive: the eye-exam / glasses-Rx
 * UI rides on top of ClinicCore's shared patient/appointment screens.
 */
class DataController extends Controller
{
    public function user_permissions()
    {
        return [
            ['value' => 'opth.exams.manage',      'label' => __('ophthClinic::lang.perm_exams_manage'),      'default' => true],
            ['value' => 'opth.glasses_rx.manage', 'label' => __('ophthClinic::lang.perm_glasses_rx_manage'), 'default' => true],
        ];
    }
}
