refactor: restructure DataChangeInfolist to use Section component for improved organization and readability
This commit is contained in:
parent
30d8432cf5
commit
1ae4d58b48
@ -5,6 +5,7 @@
|
|||||||
use App\Filament\Support\CheerfulNotification;
|
use App\Filament\Support\CheerfulNotification;
|
||||||
use App\Models\DataChangeRequest;
|
use App\Models\DataChangeRequest;
|
||||||
use Filament\Infolists\Components\TextEntry;
|
use Filament\Infolists\Components\TextEntry;
|
||||||
|
use Filament\Schemas\Components\Section;
|
||||||
use Filament\Schemas\Schema;
|
use Filament\Schemas\Schema;
|
||||||
use Illuminate\Support\Facades\Storage;
|
use Illuminate\Support\Facades\Storage;
|
||||||
|
|
||||||
@ -13,6 +14,8 @@ class DataChangeInfolist
|
|||||||
public static function configure(Schema $schema): Schema
|
public static function configure(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
return $schema
|
return $schema
|
||||||
|
->schema([
|
||||||
|
Section::make()
|
||||||
->schema([
|
->schema([
|
||||||
TextEntry::make('comparison')
|
TextEntry::make('comparison')
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
@ -136,8 +139,8 @@ public static function configure(Schema $schema): Schema
|
|||||||
})
|
})
|
||||||
->filter()
|
->filter()
|
||||||
->implode('');
|
->implode('');
|
||||||
})
|
}),
|
||||||
->columnSpanFull(),
|
]),
|
||||||
])
|
])
|
||||||
->columns(1);
|
->columns(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user