<?php

namespace App\Models;


class Endpoint extends \App\Models\AbstractModels\AbstractEndpoint
{
    //stati dell'endpoint
    const NON_REGISTRATO = 'non_registrato';
    const REGISTRATO = 'registrato';
    const ELIMINATO = 'eliminato';
    const ATTIVO = 'attivo';
    const DISABILITATO = 'disabilitato';

    public static function getStati()
    {
        return collect([
            self::NON_REGISTRATO => [
                'label' => 'Non registrato',
                'class' => 'bg-label-secondary text-secondary',
                'value' => self::NON_REGISTRATO,
                'icon' => 'bx bx-x',
            ],
            self::REGISTRATO => [
                'label' => 'Registrato',
                'class' => 'bg-label-info text-info',
                'value' => self::REGISTRATO,
                'icon' => 'bx bx-check',
            ],
            self::ELIMINATO => [
                'label' => 'Eliminato',
                'class' => 'bg-label-danger text-danger',
                'value' => self::ELIMINATO,
                'icon' => 'bx bx-x',
                ],
            self::ATTIVO => [
                'label' => 'Attivo',
                'class' => 'bg-label-success text-success',
                'value' => self::ATTIVO,
                'icon' => 'bx bx-check',
            ],
            self::DISABILITATO => [
                'label' => 'Disabilitato',
                'class' => 'bg-label-warning text-warning',
                'value' => self::DISABILITATO,
                'icon' => 'bx bx-lock',
            ],
        ]);
    }
}
