/** * Display a listing of the resource. * * @return Response */ public function index() { $posts = Post::orderBy('created_at', 'desc')->take(5)->get(); $reservations = Reservation::where('valide', '<', 2)->get(); $velos = Velo::all(); return view('admin.dashboard')->with(['posts' => $posts, 'reservations' => $reservations, 'velos' => $velos]); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $velos = Velo::all(); $etape = 0; return view('location')->with(['velos' => $velos, 'etape' => $etape]); }