Remove DocumentForm schema and update Turkmen translations for modal actions and notifications; refactor web routes for cleaner syntax.
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user