git commit "update flight page"

This commit is contained in:
2026-08-17 10:01:42 +03:30
parent b626644eea
commit e99c340f1e
21 changed files with 13624 additions and 10781 deletions
+5 -8
View File
@@ -4,19 +4,16 @@ namespace App\Http\Controllers;
use App\Models\Flight;
use App\Models\Tour;
use App\Models\Province;
class HomeController extends Controller
{
public function index()
{
$flights = Flight::latest('created_at')
->take(6)
->get();
$newestFlight = Flight::latest()->take(10)->get();
$flights=Flight::latest()->paginate(5);
$newestTour = Tour::latest()->take(10)->get();
$tours = Tour::latest('created_at')
->take(6)
->get();
return view('home.index', compact('flights', 'tours'));
return view('home.index', compact('newestFlight','flights', 'newestTour'));
}
}