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]);
 }
Esempio n. 2
0
 /**
  * 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'));
 }
Esempio n. 3
0
 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');
 }
Esempio n. 4
0
 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'));
 }
Esempio n. 5
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     $services = Service::all();
     return view('welcome', compact('services'));
 }
Esempio n. 6
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $service = Service::all();
     return view('hardware.service')->withService($service);
 }
Esempio n. 7
0
 public function getIndex()
 {
     return Response::json(Service::all());
 }
Esempio n. 8
0
 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();
 }
Esempio n. 10
0
 /**
  * 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'));
 }
Esempio n. 12
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $services = Service::all();
     return view('admin.services.index', ['services' => $services]);
 }
Esempio n. 13
0
 /**
  * Show a list of all of the application's users.
  *
  * @return Response
  */
 public function all()
 {
     $services = Service::all();
     return view('service.allservices', ['services' => $services]);
 }