feat: style flight and tour cards with latest flights section
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user