<?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')); } }