PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` with('banner',1); }); Route::get('/services', function() { return View::make('services'); }); Route::get('/guarantee', function() { return View::make('guarantee'); }); Route::get('/projects', function() { return View::make('projects'); }); Route::get('/gallery', function() { $directory = "gallery_images"; $directories = scandir ( $directory ); return View::make('gallery')->with("directories",$directories); }); Route::get('/gallery/{directory}', function($directory) { $h = opendir('gallery_images/'.$directory); $images = array(); $i=0; while (false !== ($entry = readdir($h))) { if($entry != '.' && $entry != '..') { $images[$i++] = $entry; } } return View::make('gallery_detail')->with("images",$images)->with("directory",$directory); //echo getcwd(); }); Route::get('/contact', function() { return View::make('contact'); }); Route::post('/contact', function(){ $rules=array( 'name' => 'Required', 'email' => 'Required', 'cell' => 'Required|min:10|max:12', 'message' => 'Required|min:10', 'captcha' => 'Required|captcha' ); $v = Validator::make(Input::all(), $rules); if($v->passes()){ $messageData = array( 'name' => Input::get('name'), 'email' => Input::get('email'), 'cell' => Input::get('cell'), 'mymessage' => Input::get('message') ); $sending = array( 'from' => 'no-reply@beumah.co.za', ); $mailmessage = Mail::send('emails.contact', $messageData, function($message) use($sending){ $message->to('sales@beumah.co.za') ->from(Input::get('email')) ->subject('Web enquiry'); }); Session::flash('success', 'Message sent successfully'); return Redirect::to('/contact')->withInput(); } return Redirect::to('/contact')->withInput()->withErrors($v->getMessageBag()); });