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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user