Remove DocumentForm schema and update Turkmen translations for modal actions and notifications; refactor web routes for cleaner syntax.

This commit is contained in:
2025-08-31 15:56:28 +05:00
parent 34e78c5e43
commit 3e58524af7
6 changed files with 17 additions and 45 deletions

View File

@@ -1,28 +0,0 @@
<?php
namespace App\Filament\Resources\Documents\Schemas;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class DocumentForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
Select::make('pilgrim_id')
->relationship('pilgrim', 'last_name')
->searchable()
->preload()
->required(),
TextInput::make('title')
->required(),
FileUpload::make('file')
->required()
->downloadable(),
]);
}
}

View File

@@ -11,5 +11,7 @@
"Name": "Ady",
"Logout": "Çykyş",
"Edit": "Üýtget",
"Delete": "Poz"
"Delete": "Poz",
"Save changes": "Üýtgeşmeli ýatda sakla",
"Cancel": "Ýap"
}

View File

@@ -4,16 +4,16 @@ return [
'single' => [
'label' => 'Ayır',
'label' => 'Aýyr',
'modal' => [
'heading' => ':label ayır',
'heading' => ':label aýyr',
'actions' => [
'detach' => [
'label' => 'Ayır',
'label' => 'Aýyr',
],
],
@@ -23,7 +23,7 @@ return [
'notifications' => [
'detached' => [
'title' => 'Ayrıldı',
'title' => 'Aýryldy',
],
],
@@ -32,16 +32,16 @@ return [
'multiple' => [
'label' => 'Seçiliyi ayır',
'label' => 'Saýlananlary aýyr',
'modal' => [
'heading' => ':label seçiliyi ayır ',
'heading' => ':label saýlananlary aýyr ',
'actions' => [
'detach' => [
'label' => 'Seçiliyi ayır',
'label' => 'Saýlananlary aýyr',
],
],
@@ -51,7 +51,7 @@ return [
'notifications' => [
'detached' => [
'title' => 'Ayrıldı',
'title' => 'Aýryldy',
],
],

View File

@@ -2,20 +2,20 @@
return [
'confirmation' => 'Bunu yapmak istediğinizden emin misiniz?',
'confirmation' => 'Bu hereketi tassyklaýanyzmy?',
'actions' => [
'cancel' => [
'label' => 'İptal',
'label' => 'Ýap',
],
'confirm' => [
'label' => 'Onayla',
'label' => 'Tassykla',
],
'submit' => [
'label' => 'Gönder',
'label' => 'Ugrat',
],
],

View File

@@ -13,7 +13,7 @@ return [
'actions' => [
'close' => [
'label' => 'Kapat',
'label' => 'Ýap',
],
],

View File

@@ -2,6 +2,4 @@
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
Route::view('/', 'welcome');