feat: final updates

This commit is contained in:
2026-08-22 14:10:18 -07:00
parent d4bb1b9414
commit d6e4eb4441
5 changed files with 14 additions and 10 deletions
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller; use App\Http\Controllers\Controller;
use App\Models\ActivityLog; use App\Models\ActivityLog;
use App\Models\Tour;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class ActivityLogController extends Controller class ActivityLogController extends Controller
@@ -16,9 +17,12 @@ class ActivityLogController extends Controller
->when($request->filled('log_name'), function ($query) use ($request) { ->when($request->filled('log_name'), function ($query) use ($request) {
$query->where('log_name', $request->input('log_name')); $query->where('log_name', $request->input('log_name'));
}) })
->latest('created_at') ->orderByDesc('created_at')
->paginate(20); ->paginate(20);
return view('admin.activity-logs.index', compact('logs')); return view('admin.activity-logs.index', compact('logs'));
} }
} }
+1
View File
@@ -34,4 +34,5 @@ class ActivityLog extends Model
{ {
return $this->belongsTo(Admin::class, 'causer_id'); return $this->belongsTo(Admin::class, 'causer_id');
} }
} }
+1 -2
View File
@@ -4,7 +4,7 @@
@section('account-content') @section('account-content')
```
<div class="col-lg-9"> <div class="col-lg-9">
<div class="user-profile-wrapper"> <div class="user-profile-wrapper">
<div class="user-profile-card"> <div class="user-profile-card">
@@ -231,6 +231,5 @@
</div> </div>
</div> </div>
</div> </div>
```
@endsection @endsection
@@ -125,18 +125,18 @@
@break @break
@case('departure_time') @case('departure_time')
زمان رفت: زمان رفت:
«{{ $oldValue ? \Carbon\Carbon::parse($oldValue)->format('Y/m/d H:i') : '—' }} «{{ $oldValue ? \Carbon\Carbon::parse($oldValue)->toJalali()->format('Y/m/d H:i') : '—' }}
» »
به &larr;
«{{ $newValue ? \Carbon\Carbon::parse($newValue)->format('Y/m/d H:i') : '—' }} «{{ $newValue ? \Carbon\Carbon::parse($newValue)->toJalali()->format('Y/m/d H:i') : '—' }}
» »
@break @break
@case('return_time') @case('return_time')
زمان برگشت: زمان برگشت:
«{{ $oldValue ? \Carbon\Carbon::parse($oldValue)->format('Y/m/d H:i') : '—' }} «{{ $oldValue ? \Carbon\Carbon::parse($oldValue)->toJalali()->format('Y/m/d H:i') : '—' }}
» »
به &larr;
«{{ $newValue ? \Carbon\Carbon::parse($newValue)->format('Y/m/d H:i') : '—' }} «{{ $newValue ? \Carbon\Carbon::parse($newValue)->toJalali()->format('Y/m/d H:i') : '—' }}
» »
@break @break