/**
  * Verify if exist
  */
 private function dataExist($id)
 {
     $data = Organisation::find($id);
     if (!$data) {
         return Redirect::route('organisation_list')->with('mError', 'Ce organisme est introuvable !');
     } else {
         return $data;
     }
 }
            $message = "Message was sent";
            $class = "success";
            return View::make('pages.support')->with('title', $title)->with('testimonials', $testimonials)->with('galleries', $galleries)->with('message', $message)->with('class', $class);
        } catch (Exception $e) {
            Input::flash();
            $message = "Message was not sent: " . $e->getMessage();
            $class = "danger";
            return View::make('pages.support')->with('title', $title)->with('testimonials', $testimonials)->with('galleries', $galleries)->with('errors', $v->errors)->with('message', $message)->with('class', 'danger')->with_input();
        }
    }
    Input::flash();
    return View::make('pages.support')->with('title', $title)->with('testimonials', $testimonials)->with('galleries', $galleries)->with('errors', $v->errors)->with('class', 'danger')->with_input();
});
Route::get('/(:any)', function ($page) {
    $page = Page::where('slug', '=', $page)->first();
    $organisation = Organisation::find(1);
    $testimonials = $organisation->testimonials()->order_by(DB::raw('RAND()'))->take(2)->get();
    $title = $page->seo_title ? $page->seo_title : $page->title;
    $description = $page->seo_description;
    $keywords = $page->seo_keywords;
    $galleries = $organisation->galleries()->order_by('sort_order', 'asc')->get();
    if (is_null($page)) {
        return Event::first('404');
    }
    return View::make('pages.page')->with('page', $page)->with('title', $title)->with('description', $description)->with('keywords', $keywords)->with('testimonials', $testimonials)->with('galleries', $galleries);
});
Route::controller('user.quotations');
Route::controller('user.pages');
Route::controller('user.posts');
Route::controller('user.categories');
Route::controller('user.galleries');