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,64 @@
<?php
namespace App\Modules\PersonStates;
use App\Modules\Makeable;
use App\Modules\ModuleContract;
class PersonStatesModule 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,46 @@
<?php
namespace App\Modules\PersonStates\Repositories;
class EducationRepository
{
public const SCHOOL_DROP_OUT = 'school_drop_out';
public const SCHOOL = 'school';
public const MIDDLE_SCHOOL = 'middle_school';
public const UNFINISHED_HIGH_EDUCATION = 'Unfinished_high_education';
public const HIGH_EDUCATION = 'high_education';
public const MASTERS = 'masters';
public const PHD = 'phd';
/**
* Education statuses
*
* @return array<string, string>
*/
public static function values(): array
{
return [
self::SCHOOL_DROP_OUT => __('School drop out'),
self::SCHOOL => __('School'),
self::MIDDLE_SCHOOL => __('Middle school'),
self::UNFINISHED_HIGH_EDUCATION => __('Unfinished high education'),
self::HIGH_EDUCATION => __('High education'),
self::MASTERS => __('Masters ED'),
self::PHD => __('PHD'),
];
}
/**
* Default education status
*/
public static function default(): string
{
return self::HIGH_EDUCATION;
}
}

View File

@@ -0,0 +1,40 @@
<?php
namespace App\Modules\PersonStates\Repositories;
class MarriageRepository
{
public const MARRIED = 'married';
public const LEGAL_MARRIAGE = 'legal_marriage';
public const DIVORCED = 'divorced';
public const WIDOW = 'WIDOW';
public const SINGLE = 'single';
/**
* Marriage values
*
* @return array<string, string>
*/
public static function values(): array
{
return [
self::MARRIED => __('Married'),
self::LEGAL_MARRIAGE => __('Legal Marriage'),
self::DIVORCED => __('Divorced'),
self::WIDOW => __('Widow'),
self::SINGLE => __('Single'),
];
}
/**
* Default marriage value
*/
public static function default(): string
{
return self::MARRIED;
}
}