feat: implement flights index and blade view for panel admin
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user