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]);
 }
Exemplo 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'));
 }
Exemplo 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');
 }
Exemplo 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'));
 }
Exemplo n.º 5
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     $services = Service::all();
     return view('welcome', compact('services'));
 }
Exemplo n.º 6
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $service = Service::all();
     return view('hardware.service')->withService($service);
 }
Exemplo n.º 7
0
 public function getIndex()
 {
     return Response::json(Service::all());
 }
Exemplo n.º 8
0
 public function getIndex()
 {
     pagetitle([trans('main.apps.services'), settings('server_name')]);
     $services = Service::all();
     return view('front.services.index', compact('services'));
 }
Exemplo n.º 9
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return Service::all();
 }
Exemplo n.º 10
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $servicios = Service::all();
     return view('Backend.Services.index', ['servicios' => $servicios]);
 }
Exemplo n.º 11
0
 /**
  * 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'));
 }
Exemplo 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]);
 }
Exemplo 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]);
 }