feat: final updates
This commit is contained in:
@@ -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'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,4 +34,5 @@ class ActivityLog extends Model
|
|||||||
{
|
{
|
||||||
return $this->belongsTo(Admin::class, 'causer_id');
|
return $this->belongsTo(Admin::class, 'causer_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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') : '—' }}
|
||||||
»
|
»
|
||||||
به
|
←
|
||||||
«{{ $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') : '—' }}
|
||||||
»
|
»
|
||||||
به
|
←
|
||||||
«{{ $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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user