base commit

This commit is contained in:
Mekan1206
2026-07-30 17:24:40 +05:00
commit a794dacd39
345 changed files with 29597 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Filament\Resources\Departments\Schemas;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Schema;
class DepartmentForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('name')
->required()
->maxLength(255),
TextInput::make('code')
->required()
->maxLength(50)
->unique(ignoreRecord: true),
Textarea::make('description')
->rows(3)
->columnSpanFull(),
Toggle::make('is_active')
->label('Active')
->default(true)
->required(),
]);
}
}