<?php

namespace Modules\DermatologyClinic\Http\Controllers;

use Illuminate\Routing\Controller;

/**
 * DermatologyClinic DataController — surfaced by the ERP's
 * ModuleUtil::getModuleData(), which merges each installed module's
 * user_permissions() into the role editor so SaaS package admins can grant them
 * per role. Additive: the derma lesion / score UI rides on top of ClinicCore's
 * shared patient/appointment screens.
 */
class DataController extends Controller
{
    public function user_permissions()
    {
        return [
            ['value' => 'derma.lesions.manage', 'label' => __('dermaClinic::lang.perm_lesions_manage'), 'default' => true],
            ['value' => 'derma.scores.manage',  'label' => __('dermaClinic::lang.perm_scores_manage'),  'default' => true],
        ];
    }
}
