diff --git a/app/Http/Controllers/Staff/AuditLogController.php b/app/Http/Controllers/Staff/AuditLogController.php index e960241..60cfb76 100644 --- a/app/Http/Controllers/Staff/AuditLogController.php +++ b/app/Http/Controllers/Staff/AuditLogController.php @@ -24,7 +24,7 @@ public function popup() $logs->each(function ($log) { $log->category_name = Category::from($log->category)->name; - $log->activity_name = Str::of(Activity::from($log->activity)->name)->slug('-')->replace('-', ' ')->title(); + $log->activity_name = Str::of(Activity::from($log->activity)->name)->slug('-')->replace('-', ' ')->ucfirst(); if (filled($log->user_agent)) { $log->browser = "Browser: {$log->browser_name}\nDevice: {$log->device_type}\nPlatform: {$log->platform}"; } else { diff --git a/database/migrations/2024_11_21_821544_create_user_agents_table.php b/database/migrations/2024_11_21_821544_create_user_agents_table.php index 9b99443..33d097e 100644 --- a/database/migrations/2024_11_21_821544_create_user_agents_table.php +++ b/database/migrations/2024_11_21_821544_create_user_agents_table.php @@ -6,9 +6,6 @@ return new class extends Migration { - /** - * Run the migrations - */ public function up(): void { Schema::create('user_agents', static function (Blueprint $table) { diff --git a/resources/views/staff/audit/popup.blade.php b/resources/views/staff/audit/popup.blade.php index a29c2e4..53b587b 100644 --- a/resources/views/staff/audit/popup.blade.php +++ b/resources/views/staff/audit/popup.blade.php @@ -3,6 +3,17 @@ + + + + + + + + + + + @foreach ($logs as $log) @@ -14,7 +25,6 @@ {{ $log->ip_addr }} @endisset -
TimeUserActivityRemarksIPBrowserUrl
{{ $log->log_time }}{{ $log->category_name }} @isset($log->browser) @include('_partials._img-tooltip', ['src' => asset('imgs/browser_64.png'), 'tip' => $log->browser, 'class' => 'msg-icon'])