diff --git a/app/Filament/Dashboard/Resources/OrganismResource/RelationManagers/SampleLocationsRelationManager.php b/app/Filament/Dashboard/Resources/OrganismResource/RelationManagers/SampleLocationsRelationManager.php index 1c71831c..159a9fd9 100644 --- a/app/Filament/Dashboard/Resources/OrganismResource/RelationManagers/SampleLocationsRelationManager.php +++ b/app/Filament/Dashboard/Resources/OrganismResource/RelationManagers/SampleLocationsRelationManager.php @@ -8,8 +8,6 @@ use Filament\Resources\RelationManagers\RelationManager; use Filament\Tables; use Filament\Tables\Table; -use Illuminate\Database\Eloquent\Builder; -use Illuminate\Database\Eloquent\SoftDeletingScope; class SampleLocationsRelationManager extends RelationManager { diff --git a/app/Filament/Dashboard/Resources/SampleLocationResource.php b/app/Filament/Dashboard/Resources/SampleLocationResource.php index 433b9b82..a30e2b35 100644 --- a/app/Filament/Dashboard/Resources/SampleLocationResource.php +++ b/app/Filament/Dashboard/Resources/SampleLocationResource.php @@ -4,15 +4,12 @@ use App\Filament\Dashboard\Resources\SampleLocationResource\Pages; use App\Filament\Dashboard\Resources\SampleLocationResource\RelationManagers\MoleculesRelationManager; -use App\Filament\Dashboard\Resources\SampleLocationResource\RelationManagers; use App\Models\SampleLocation; use Filament\Forms; use Filament\Forms\Form; use Filament\Resources\Resource; use Filament\Tables; use Filament\Tables\Table; -use Illuminate\Database\Eloquent\Builder; -use Illuminate\Database\Eloquent\SoftDeletingScope; use Tapp\FilamentAuditing\RelationManagers\AuditsRelationManager; class SampleLocationResource extends Resource @@ -20,7 +17,9 @@ class SampleLocationResource extends Resource protected static ?string $model = SampleLocation::class; protected static bool $shouldRegisterNavigation = false; + protected static ?string $navigationGroup = 'Data'; + protected static ?int $navigationSort = 6; protected static ?string $navigationIcon = 'heroicon-s-viewfinder-circle'; @@ -35,8 +34,8 @@ public static function form(Form $form): Form Forms\Components\TextInput::make('iri') ->maxLength(255), Forms\Components\Select::make('organism_id') - ->relationship('organisms', 'name') - ->searchable() + ->relationship('organisms', 'name') + ->searchable() ->required(), Forms\Components\TextInput::make('collection_ids') ->maxLength(255), diff --git a/app/Filament/Dashboard/Resources/SampleLocationResource/Pages/CreateSampleLocation.php b/app/Filament/Dashboard/Resources/SampleLocationResource/Pages/CreateSampleLocation.php index f84915ac..8df73426 100644 --- a/app/Filament/Dashboard/Resources/SampleLocationResource/Pages/CreateSampleLocation.php +++ b/app/Filament/Dashboard/Resources/SampleLocationResource/Pages/CreateSampleLocation.php @@ -3,7 +3,6 @@ namespace App\Filament\Dashboard\Resources\SampleLocationResource\Pages; use App\Filament\Dashboard\Resources\SampleLocationResource; -use Filament\Actions; use Filament\Resources\Pages\CreateRecord; class CreateSampleLocation extends CreateRecord diff --git a/app/Filament/Dashboard/Resources/SampleLocationResource/RelationManagers/MoleculesRelationManager.php b/app/Filament/Dashboard/Resources/SampleLocationResource/RelationManagers/MoleculesRelationManager.php index 2be03715..fa9ecba0 100644 --- a/app/Filament/Dashboard/Resources/SampleLocationResource/RelationManagers/MoleculesRelationManager.php +++ b/app/Filament/Dashboard/Resources/SampleLocationResource/RelationManagers/MoleculesRelationManager.php @@ -7,8 +7,6 @@ use Filament\Resources\RelationManagers\RelationManager; use Filament\Tables; use Filament\Tables\Table; -use Illuminate\Database\Eloquent\Builder; -use Illuminate\Database\Eloquent\SoftDeletingScope; class MoleculesRelationManager extends RelationManager {