<?php

namespace Modules\ClinicCore\Entities;

use Illuminate\Database\Eloquent\Model;

class ClcRoleLandingPage extends Model
{
    protected $table = 'clc_role_landing_pages';
    protected $guarded = ['id'];

    /**
     * Built-in landing-page presets shown in the picker. Free URLs are also
     * accepted (anything not in this list is treated as a custom URL).
     */
    public static function presets(): array
    {
        return [
            '/home'                              => 'Main ERP dashboard',
            '/clinic'                        => 'Clinic dashboard',
            '/clinic/appointments'           => 'Clinic — Appointments list',
            '/clinic/appointments/calendar'  => 'Clinic — Appointments calendar',
            '/clinic/patient-contacts'             => 'Clinic — Patients',
            '/clinic/patients'                   => 'Clinic — Patient Records',
            '/clinic/vaccinations'           => 'Clinic — Vaccinations',
            '/clinic/prescriptions'          => 'Clinic — Prescriptions',
            '/clinic/reports'                => 'Clinic — Reports',
            '/pos/create'                        => 'POS — New sale',
        ];
    }
}
