/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     // get all the menus
     $menus = Menu::orderBy('position')->get();
     // load the view and pass the menus
     return \View::make('admin.pages.menus.index')->with('menus', $menus);
     //
 }
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index($page = null)
 {
     $page = isset($page) ? 'bootstrap' : 'index';
     // get all the Slider
     $sliders = Slider::all();
     // get all the Contact
     $contacts = Contact::all();
     // get all the Project_image
     $project_images = Project_image::orderBy('position')->get();
     // get all the Projects
     $projects = Project::orderBy('position')->get();
     // get all the service_details
     $service_details = Service_detail::orderBy('position')->get();
     // get all the services
     $services = Service::orderBy('position')->get();
     // get all the menus
     $menus = Menu::orderBy('position')->get();
     // load the view and pass the menus
     // load the view and pass the services
     return \View::make($page)->with('sliders', $sliders)->with('contacts', $contacts)->with('project_images', $project_images)->with('projects', $projects)->with('service_details', $service_details)->with('services', $services)->with('menus', $menus);
 }