diff --git a/app/Filament/Resources/Manage/DataChanges/Infolists/DataChangeInfolist.php b/app/Filament/Resources/Manage/DataChanges/Infolists/DataChangeInfolist.php
index 1c2eb31..9bd7157 100644
--- a/app/Filament/Resources/Manage/DataChanges/Infolists/DataChangeInfolist.php
+++ b/app/Filament/Resources/Manage/DataChanges/Infolists/DataChangeInfolist.php
@@ -5,6 +5,7 @@
use App\Filament\Support\CheerfulNotification;
use App\Models\DataChangeRequest;
use Filament\Infolists\Components\TextEntry;
+use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Illuminate\Support\Facades\Storage;
@@ -14,109 +15,111 @@ public static function configure(Schema $schema): Schema
{
return $schema
->schema([
- TextEntry::make('comparison')
- ->hiddenLabel()
- ->html()
- ->state(function (DataChangeRequest $record): string {
- $old = $record->old_data ?? [];
- $new = $record->new_data ?? [];
+ Section::make()
+ ->schema([
+ TextEntry::make('comparison')
+ ->hiddenLabel()
+ ->html()
+ ->state(function (DataChangeRequest $record): string {
+ $old = $record->old_data ?? [];
+ $new = $record->new_data ?? [];
- if (! is_array($old) || ! is_array($new)) {
- return 'Format data tidak valid.';
- }
-
- $renderValue = function ($value) {
- if (empty($value)) {
- return 'Kosong';
- }
-
- $paths = is_array($value) ? $value : [$value];
- $isProbablyPath = false;
-
- foreach ($paths as $path) {
- if (is_string($path) && (str_contains($path, '/') || str_contains($path, '\\'))) {
- $isProbablyPath = true;
- break;
+ if (! is_array($old) || ! is_array($new)) {
+ return 'Format data tidak valid.';
}
- }
- if ($isProbablyPath) {
- return collect($paths)
- ->map(function ($path) {
- if (! is_string($path)) {
- return e(json_encode($path));
+ $renderValue = function ($value) {
+ if (empty($value)) {
+ return 'Kosong';
+ }
+
+ $paths = is_array($value) ? $value : [$value];
+ $isProbablyPath = false;
+
+ foreach ($paths as $path) {
+ if (is_string($path) && (str_contains($path, '/') || str_contains($path, '\\'))) {
+ $isProbablyPath = true;
+ break;
}
+ }
- $url = Storage::disk(config('filesystems.default'))->url($path);
- $extension = strtolower(pathinfo($path, PATHINFO_EXTENSION));
+ if ($isProbablyPath) {
+ return collect($paths)
+ ->map(function ($path) {
+ if (! is_string($path)) {
+ return e(json_encode($path));
+ }
- if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg'])) {
- return "";
- }
+ $url = Storage::disk(config('filesystems.default'))->url($path);
+ $extension = strtolower(pathinfo($path, PATHINFO_EXTENSION));
- if ($extension === 'pdf') {
- return "
+ if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg'])) {
+ return "
";
+ }
+
+ if ($extension === 'pdf') {
+ return "
".CheerfulNotification::getByKey('data_change.deletion_request_desc').'
".CheerfulNotification::getByKey('data_change.addition_request_desc')."