diff --git a/app/Filament/Resources/ImportTransitResource.php b/app/Filament/Resources/ImportTransitResource.php index ea54062..fa97109 100644 --- a/app/Filament/Resources/ImportTransitResource.php +++ b/app/Filament/Resources/ImportTransitResource.php @@ -167,6 +167,17 @@ class ImportTransitResource extends Resource ->afterStateUpdated(function (callable $set) { $set('updated_by', Filament::auth()->user()?->name); }), + Forms\Components\TextInput::make('remark') + ->label('Remark') + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), + Forms\Components\TextInput::make('is_transit_identified') + ->label('Is Transit Identified') + ->default(0) + ->afterStateUpdated(function (callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\Hidden::make('created_by') ->label('Created By') ->default(Filament::auth()->user()?->name), @@ -292,6 +303,14 @@ class ImportTransitResource extends Resource ->label('Vessel Number') ->alignCenter() ->sortable(), + Tables\Columns\TextColumn::make('remark') + ->label('Remark') + ->alignCenter() + ->sortable(), + Tables\Columns\TextColumn::make('is_transit_identified') + ->label('Is Transit Identified') + ->alignCenter() + ->sortable(), Tables\Columns\TextColumn::make('created_at') ->label('Created At') ->alignCenter() diff --git a/app/Models/ImportTransit.php b/app/Models/ImportTransit.php index 82394eb..c7c4e16 100644 --- a/app/Models/ImportTransit.php +++ b/app/Models/ImportTransit.php @@ -36,6 +36,8 @@ class ImportTransit extends Model 'bill_number', 'bill_received_date', 'vessel_number', + 'remark', + 'is_transit_identified', 'created_at', 'created_by', 'updated_at', diff --git a/database/migrations/2026_06_02_113021_add_is_transit_identified_and_remark_to_import_transits.php b/database/migrations/2026_06_02_113021_add_is_transit_identified_and_remark_to_import_transits.php new file mode 100644 index 0000000..3498bb8 --- /dev/null +++ b/database/migrations/2026_06_02_113021_add_is_transit_identified_and_remark_to_import_transits.php @@ -0,0 +1,38 @@ +