<?php

namespace App\Enums;

enum InfoItem: int
{
    case MAREMAT= 1;
    case PAKSAZI = 2;
    case ALAEM = 3;
    case HEFAZ = 4;
    case ROSHANAEI = 5;
    case KHATKESHI = 6;
    case RANGAMIZI = 7;
    case SHOSTESHOO = 8;
    case IMENSAZI = 9;
    case HARIM_1 = 10;
    case HARIM_2 = 17;
    case POL= 11;
    case TOONEL= 12;
    case ZEMESTANI= 13;
    case MASHINALAT= 14;
    case RAHDARKHANE= 15;
    case EZTERARI= 16;
    case BAZRESI= 20;

    public static function subItems(int $item): array
    {
        $subitems = [
            1 => [1 => 'LabeAsphalt', 2 => 'ShaneSazi', 3 => 'GodOftadegi', 4 => 'Lakegiri',
                  5 => 'Maremat', 6 => 'BastarHarim', 8 => 'Darzgiri', 9 => 'Mozres',
                  10 => 'TarashRooye', 11 => 'Tighzani', 12 => 'Shenrizi', 13 => 'Khakbardari',
                  14 => 'TaranesheBardary'
            ],

            2 => [1 => 'PaksaziSathRah', 2 => 'TanfieAbro', 3 => 'PaksaziLashe', 4 => 'PaksaziGhono',
                  5 => 'PaksaziTasadofat', 6 => 'AlafKani', 7 => 'PaksaziHarim', 8 => 'JamavariGhateat',
                  9 => 'PaksaziParking', 10 => 'PaksaziKenarGharnizPol', 11 => 'PaksaziJazire',
                  12 => 'PaksaziTanfieDakhelPol', 13 => 'PaksaziSifon', 14 => 'PaksaziShakheDerakhtan', 15 => 'PaksaziMavadNafti',
                  16 => 'AlafKaniDasti', 17 => 'RizeshBardari', 18 => 'JamavariSang', 19 => 'Layeroobi'
            ],

            3 => [1 => 'TabloEkhtari', 2 => 'TabloEtelati', 3 => 'Shabrang', 4 => 'Baztab', 5 => 'TavizTablo',
                  6 => 'Maremat', 7 => 'EslahKajShodegi', 8 => 'NasbAlaemMovaghat', 9 => 'ShibShirvani'
            ],

            4 => [1 => 'Miani', 2 => 'Pol', 3 => 'Behsazi'],

            5 => [1 => 'NegahdariTool', 2 => 'NegahdariHashieh', 3 => 'NegahdariNoghteyi', 4 => 'NegahdariNavahi',
                  5 => 'NegahdariMehgir', 6 => 'NegahdariToonel', 7 => 'TamiratCable', 8 => 'TamiratKaleCheragh',
                  9 => 'TamiratMafselzani', 10 => 'TamiratTablo', 11 => 'TamiratBorjNoori'
            ],

            6 => [1 => 'KhatkeshiRangGarm', 2 => 'KhatkeshiRangSard', 3 => 'TarsimKhat',
                  4 => 'EjrayeTooli', 5 => 'EjrayeArzi', 6 => 'PakKardanKhotoot'
            ],

            7 => [1 => 'RangamiziTablo', 2 => 'RangamiziCheraq', 3 => 'RangimiziPayeRoshanayi', 4 => 'RangamiziPol',
                  5 => 'RangamiziDarvazi', 6 => 'RangamiziHefazFelezi', 7 => 'RangamiziNewjersi', 8 => 'RangamiziSoratgah', 9 => 'RangamiziPaye'
            ],

            8 => [1 => 'ShosteshooAlaem', 2 => 'ShosteshooTablo', 3 => 'ShosteshooJadval', 4 => 'ShosteshooNewjersi',
                  5 => 'ShosteshooGuardrail', 6 => 'ShosteshooToonel', 7 => 'ShosteshooPol'
            ],

            9 => [1 => 'ImensaziSarguard', 4 => ' TamiratCheraq', 5 => 'IjadShiar',
                  6 => 'Zarbegir', 7 => 'NasbSoratgir', 8 => 'IjadLarzanande',
                  9 => 'OstevaneImeni', 11 => 'EhdasSoratgir', 12 => 'EjrayeNoghteyi',
                  13 => 'EjrayeTooli', 14 => 'TarizMaghtaei', 15 => 'HazfMavane', 16 => 'DivarChini'
            ],

            10 => [4 => 'BarkhordBaDastfroosh', 5 => 'JamavariTabloo', 6 => 'JamavariBanner'],

            11 => [1 => 'EhdasGharnizPol', 2 => 'Lole', 3 => 'Tatvil', 4 => 'Bazsazi',
                   5 => 'TamiratAbro', 6 => 'Maremat', 7 => 'Radie'
            ],

            12 => [1 => 'Zehkeshi', 2 => 'Maremat', 3 => 'Lining', 4 => 'TamirGallery',
                   5 => 'Gabarit', 6 => 'Doorbin', 7 => 'Tahvie'
            ],

            13 => [1 => 'Yakhzodaei', 2 => 'BarfRoobi',
                   5 => 'MizanNamak', 7 => 'Mosaferin', 8 => 'KomakResani'
            ],

            14 => [1 => 'BenzinMasrafi', 2 => 'GazMasrafi', 3 => 'MavadNafti', 4 => 'Bazsazi',
                   8 => 'Service', 9 => 'NamakPash', 10 => 'Jabejayi'
            ],

            15 => [1 => 'Tamirat', 3 => 'Jalasat'],

            16 => [1 => 'Paksazi', 2 => 'Taradod', 3 => 'BargharariErtebat', 4 => 'AbBordegi',
                  5 => 'ShekastegiPol', 6 => 'HedayatTraffici', 7 => 'Bozgoshaei', 8 => 'Jabejayi', 9 => 'Laghgiri'
            ],

            20 => [1 => 'AbniyeFani', 2 => 'Alaem', 3 => 'Taranshe', 4 => 'RoyeAphalt',
                  5 => 'HarimRah', 6 => 'MashinAlat'],

        ];

        return $subitems[$item];
    }
}