Skip to content

Commit

Permalink
Merge pull request #64 from lara-zeus/fix-active
Browse files Browse the repository at this point in the history
fix is active for departments
  • Loading branch information
atmonshi authored Aug 16, 2023
2 parents 9611151 + 3cd9a87 commit 3f614ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filament/Resources/DepartmentResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static function form(Form $form): Form

TextInput::make('slug')->required()->maxLength(255)->label(__('slug')),
TextInput::make('ordering')->required()->numeric()->label(__('ordering')),
Toggle::make('is_active')->label(__('is active')),
Toggle::make('is_active')->label(__('is active'))->inline(false),
Textarea::make('desc')->maxLength(65535)->columnSpan(['sm' => 2])->label(__('desc')),

FileUpload::make('logo')
Expand Down
1 change: 1 addition & 0 deletions src/Models/Department.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Department extends Model
'start_date' => 'datetime',
'end_date' => 'datetime',
'options' => 'array',
'is_active' => 'boolean',
];

public function getRouteKeyName(): string
Expand Down

0 comments on commit 3f614ec

Please sign in to comment.