You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
625 B
21 lines
625 B
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use App\Models\Service;
|
|
use App\Models\Page;
|
|
|
|
class StudyAbroadController extends Controller
|
|
{
|
|
public function study_abroad(){
|
|
$page = Page::where(['title' => 'Study Abroad','status' => 1])->first();
|
|
$services = Service::with('service_sections')->get();
|
|
return view('study-abroad',compact('services','page'));
|
|
}
|
|
|
|
public function details($slug){
|
|
$service = Service::where(['slug' => $slug,'status' => 1])->orderby('order_by','asc')->first();
|
|
return view('study-abroad-detail',compact('service'));
|
|
}
|
|
}
|
|
|