public function home() { $title = "Event Company TN"; $events = Event::all(); $services = Service::all(); $about = DB::select('select * from about'); $video = DB::select('select iframe from video'); return view('index', ['title' => $title, 'about' => $about, 'services' => $services, 'events' => $events, 'video' => $video]); }
/** * Show the application welcome screen to the user. * * @return Response */ public function index() { //$corporalserv = Service::corporal()->paginate(); //$facialserv = Service::facial()->paginate(); //$roomserv = Service::room()->paginate(); //$otherserv = Service::other()->paginate(); //return view('welcome', compact(['corporalserv', 'facialserv', 'roomserv', 'otherserv'])); $services = Service::all(); return view('welcome', compact('services')); }
public function postEdit(Request $request) { $services = Service::all(); foreach ($services as $service) { $service->enabled = $request->{$service->key . '_enabled'}; $service->price = $request->{$service->key . '_price'}; $service->save(); } flash()->success(trans('services.edit_success')); return redirect('admin/services'); }
public function getHome() { $services = \App\Service::all(); $categories = \Auth::user()->categories; $servicesnp = new Collection(); foreach ($services as $service) { $service->name = '(' . $service->category->name . ')-' . $service->name; } foreach ($categories as $category) { foreach ($category->services as $service) { $service->name = '(' . $service->category->name . ')-' . $service->name; $servicesnp->push($service); } } return view('pages.home', compact('services', 'servicesnp')); }
/** * Show the application dashboard to the user. * * @return Response */ public function index() { $services = Service::all(); return view('welcome', compact('services')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $service = Service::all(); return view('hardware.service')->withService($service); }
public function getIndex() { return Response::json(Service::all()); }
public function getIndex() { pagetitle([trans('main.apps.services'), settings('server_name')]); $services = Service::all(); return view('front.services.index', compact('services')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return Service::all(); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $servicios = Service::all(); return view('Backend.Services.index', ['servicios' => $servicios]); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $services = Service::all(); $category = Category::findOrFail($id); return view('admin.categories.edit', compact('services', 'category')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $services = Service::all(); return view('admin.services.index', ['services' => $services]); }
/** * Show a list of all of the application's users. * * @return Response */ public function all() { $services = Service::all(); return view('service.allservices', ['services' => $services]); }