feat: implement flights index and blade view for panel admin

This commit is contained in:
2026-08-20 13:31:51 +03:30
parent 8d0cd16384
commit 3e60fa13d3
5 changed files with 609 additions and 2 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ class Flight extends Model
{
switch ($sort) {
case 'popularity':
$query->withCount('bookings')->orderByDesc('bookings_count');
$query->orderByDesc('views_count');
break;
case 'lowest':