feat: style flight and tour cards with latest flights section

This commit is contained in:
2026-08-16 17:01:27 +03:30
parent a226931a77
commit 6516f98629
3 changed files with 44 additions and 1 deletions
+9 -1
View File
@@ -2,6 +2,8 @@
namespace App\Http\Controllers;
use App\Models\Flight;
use App\Models\Tour;
use Illuminate\Http\Request;
class IndexController extends Controller
@@ -10,6 +12,12 @@ class IndexController extends Controller
public function index()
{
$title = 'صفحه اصلی';
return view('index' , compact('title'));
$flights = Flight::with('file')
->orderByDesc('created_at')
->paginate(4);
return view('index' , compact('title' , 'flights'));
}
}