diff --git a/app/Filament/Resources/Master/Warehouses/WarehouseResource.php b/app/Filament/Resources/Master/Warehouses/WarehouseResource.php index a607207..017ca12 100644 --- a/app/Filament/Resources/Master/Warehouses/WarehouseResource.php +++ b/app/Filament/Resources/Master/Warehouses/WarehouseResource.php @@ -13,7 +13,6 @@ use App\Models\Warehouse; use BackedEnum; use Filament\Actions\BulkActionGroup; -use Filament\Forms\Components\Textarea; use Filament\Forms\Components\TextInput; use Filament\Resources\Resource; use Filament\Schemas\Schema; @@ -38,7 +37,7 @@ class WarehouseResource extends Resource protected static ?int $navigationSort = 2; - protected static ?string $recordTitleAttribute = 'notes'; + protected static ?string $recordTitleAttribute = 'name'; protected static ?string $slug = 'master/warehouses'; @@ -52,18 +51,6 @@ public static function form(Schema $schema): Schema ->autocomplete(false) ->required() ->maxLength(30), - - TextInput::make('location') - ->label('Lokasi') - ->placeholder('Tasikmalaya') - ->autocomplete(false) - ->nullable(), - - Textarea::make('notes') - ->label('Catatan') - ->placeholder('...') - ->nullable() - ->autocomplete(false), ]) ->columns(1); } @@ -77,16 +64,6 @@ public static function table(Table $table): Table ->searchable() ->sortable(), - TextColumn::make('location') - ->label('Lokasi') - ->searchable() - ->sortable(), - - TextColumn::make('notes') - ->label('Catatan') - ->searchable() - ->limit(50), - ...TimestampColumns::make(), ]) ->filters([ diff --git a/database/migrations/2026_03_06_164222_create_warehouses_table.php b/database/migrations/2026_03_06_164222_create_warehouses_table.php index 74dca66..9007365 100644 --- a/database/migrations/2026_03_06_164222_create_warehouses_table.php +++ b/database/migrations/2026_03_06_164222_create_warehouses_table.php @@ -11,8 +11,6 @@ public function up(): void Schema::create('warehouses', function (Blueprint $table) { $table->id(); $table->string('name', 30); - $table->string('location')->nullable(); - $table->text('notes')->nullable(); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes(); diff --git a/database/migrations/2026_03_07_003126_add_warehouse_id_to_egg_collections_table.php b/database/migrations/2026_03_07_003126_add_warehouse_id_to_egg_collections_table.php new file mode 100644 index 0000000..83c2064 --- /dev/null +++ b/database/migrations/2026_03_07_003126_add_warehouse_id_to_egg_collections_table.php @@ -0,0 +1,28 @@ +