This commit is contained in:
2025-10-22 20:08:22 +05:00
commit 736e3bef18
2573 changed files with 120385 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
namespace App\Modules\TurkmenPassport\Repositories;
class TurkmenPassportRepository
{
const I_AS = 'I-AS';
const I_MR = 'I-MR';
const II_MR = 'II-MR';
const I_AH = 'I-AH';
const II_AH = 'II-AH';
const I_LB = 'I-LB';
const II_LB = 'II-LB';
const I_BN = 'I-BN';
const II_BN = 'II-BN';
const I_DZ = 'I-DZ';
const II_DZ = 'II-DZ';
/**
* Passport values
*
* @return array<string, string>
*/
public static function values(): array
{
return [
self::I_AS => self::I_AS,
self::I_MR => self::I_MR,
self::II_MR => self::II_MR,
self::I_AH => self::I_AH,
self::II_AH => self::II_AH,
self::I_LB => self::I_LB,
self::II_LB => self::II_LB,
self::I_BN => self::I_BN,
self::II_BN => self::II_BN,
self::I_DZ => self::I_DZ,
self::II_DZ => self::II_DZ,
];
}
}

View File

@@ -0,0 +1,64 @@
<?php
namespace App\Modules\TurkmenPassport;
use App\Modules\Makeable;
use App\Modules\ModuleContract;
class TurkmenPassportModule implements ModuleContract
{
use Makeable;
/**
* Module is enabled
*/
protected bool $enabled = true;
/**
* Check if is module enabled
*/
public function isEnabled(): bool
{
return $this->enabled;
}
/**
* Disable module
*/
public function disable(): void
{
$this->enabled = false;
}
/**
* Enable module
*/
public function enable(): void
{
$this->enabled = true;
}
/**
* Check if module has a filament resource
*/
public function hasFilamentResource(): bool
{
return false;
}
/**
* Get module composer requirements
*/
public function getComposerRequirements(): array
{
return [];
}
/**
* Get module composer suggestions
*/
public function getComposerSuggestions(): array
{
return [];
}
}

View File

@@ -0,0 +1,13 @@
<?php
use App\Modules\TurkmenPassport\Repositories\TurkmenPassportRepository;
/**
* Turkmen passport values
*
* @return array<string, string>
*/
function turkmenPassportValues(): array
{
return TurkmenPassportRepository::values();
}