diff --git a/app/Filament/Resources/TorrentCustomFields/Pages/ListTorrentCustomFields.php b/app/Filament/Resources/TorrentCustomFields/Pages/ListTorrentCustomFields.php index 980981e2..ad6a095e 100644 --- a/app/Filament/Resources/TorrentCustomFields/Pages/ListTorrentCustomFields.php +++ b/app/Filament/Resources/TorrentCustomFields/Pages/ListTorrentCustomFields.php @@ -2,11 +2,12 @@ namespace App\Filament\Resources\TorrentCustomFields\Pages; +use App\Filament\PageList; use App\Filament\Resources\TorrentCustomFields\TorrentCustomFieldResource; use Filament\Actions\CreateAction; use Filament\Resources\Pages\ListRecords; -class ListTorrentCustomFields extends ListRecords +class ListTorrentCustomFields extends PageList { protected static string $resource = TorrentCustomFieldResource::class; diff --git a/app/Models/IpLog.php b/app/Models/IpLog.php index 42cbea51..538da6bf 100644 --- a/app/Models/IpLog.php +++ b/app/Models/IpLog.php @@ -21,7 +21,7 @@ class IpLog extends NexusModel private function getIpLocation(string $ip) { $result = get_ip_location_from_geoip($ip); - $out = $result['name']; + $out = $result['name'] ?? ''; $suffix = []; if (!empty($result['city_en'])) { $suffix[] = $result['city_en']; diff --git a/include/constants.php b/include/constants.php index 8c816dcd..ec64b217 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ runMigrate('database/migrations/2025_10_05_030400_create_activity_log_table.php'); + $toolRep = new ToolRepository(); $redis = NExusDB::redis(); /** diff --git a/resources/views/filament/resources/user/exam-user-resource/pages/detail-v3.blade.php b/resources/views/filament/resources/user/exam-user-resource/pages/detail-v3.blade.php index 4c1b401e..4bb33cd5 100644 --- a/resources/views/filament/resources/user/exam-user-resource/pages/detail-v3.blade.php +++ b/resources/views/filament/resources/user/exam-user-resource/pages/detail-v3.blade.php @@ -1,51 +1,55 @@
-
- - - - - - + + @foreach ($getState() as $index) + + + + + + + @endforeach + +
- {{ __('label.exam.index_required_label') }} - - {{ __('label.exam.index_required_value') }} - - {{ __('label.exam.index_current_value') }} +
+
+ + + + + + - - - - - @foreach ($getState() as $index) - - - - - + + - @endforeach - -
+ {{ __('label.exam.index_required_label') }} + + {{ __('label.exam.index_required_value') }} + + {{ __('label.exam.index_current_value') }} - - {{ __('label.exam.index_result') }} -
-
-
{{ $index['index_formatted'] }}
-
-
-
-
{{ $index['require_value_formatted'] }}
-
-
-
-
{{ $index['current_value_formatted'] }}
-
-
-
-
{!! $index['index_result'] !!}
-
-
+ {{ __('label.exam.index_result') }} +
+
+
+
{{ $index['index_formatted'] }}
+
+
+
+
{{ $index['require_value_formatted'] }}
+
+
+
+
{{ $index['current_value_formatted'] }}
+
+
+
+
{!! $index['index_result'] !!}
+
+
+
diff --git a/resources/views/filament/widgets/stat-table.blade.php b/resources/views/filament/widgets/stat-table.blade.php index 340d567a..f19fd010 100644 --- a/resources/views/filament/widgets/stat-table.blade.php +++ b/resources/views/filament/widgets/stat-table.blade.php @@ -1,33 +1,37 @@ - -
-
-

- {{$header}} -

+
+ +
+
+
+

+ {{$header}} +

+
+
+
+ +
+ + + @foreach(array_chunk($data, 2) as $chunk) + + @foreach($chunk as $item) + + + @endforeach + + @endforeach + +
+ {{$item['text']}} + count == 1) + colspan="3" + @endif + > +
{{$item['value']}}
+
- -
- - - @foreach(array_chunk($data, 2) as $chunk) - - @foreach($chunk as $item) - - - @endforeach - - @endforeach - -
- {{$item['text']}} - count == 1) - colspan="3" - @endif - > -
{{$item['value']}}
-
-