Add Turkmen translations for edit and delete actions; update Pilgrim model with property annotations, and enhance PilgrimsRelationManager with localized table heading and model label.

This commit is contained in:
2025-08-31 14:18:33 +05:00
parent 6b6f358aa7
commit 34e78c5e43
21 changed files with 820 additions and 10 deletions

View File

@@ -22,6 +22,16 @@ class PilgrimsRelationManager extends RelationManager
{
protected static string $relationship = 'pilgrims';
public function getTableHeading(): string
{
return 'Zyýaratçylar';
}
public static function getModelLabel(): string
{
return 'Zyýaratçy';
}
public function form(Schema $schema): Schema
{
return $schema

View File

@@ -20,16 +20,12 @@ class PilgrimResource extends Resource
{
protected static ?string $model = Pilgrim::class;
protected static ?string $navigationLabel = 'Zyýaratçylar';
protected static ?string $pluralLabel = 'Zyýaratçylar';
protected static ?int $navigationSort = 2;
public static function getNavigationIcon(): string | BackedEnum | Htmlable | null
{
return 'icon-pilgrim-man';
}
protected static ?string $navigationLabel = 'Zyýaratçylar';
protected static string | BackedEnum | null $navigationIcon = 'icon-pilgrim-man';
protected static ?string $modelLabel = 'Zyýaratçy';
protected static ?string $pluralLabel = 'Zyýaratçylar';
public static function form(Schema $schema): Schema
{

View File

@@ -7,6 +7,18 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property int $id
* @property int $group_id
* @property string $first_name
* @property string $last_name
* @property date $birthdate
* @property string $image
* @property string $local_passport
* @property string $international_passport
* @property Carbon $created_at
* @property Carbon $updated_at
*/
class Pilgrim extends Model
{
use HasFactory;