Ejemplo n.º 1
0
Route::get('make-payment/{id}', array('uses' => 'OrderController@getPayment'));
Route::get('check_order', array('uses' => 'OrderController@getCheckOrder'));
Route::post('category', array('uses' => 'CategoryController@postCreate'));
Route::post('order', array('uses' => 'OrderController@postPayOrder'));
Route::post('imei', array('uses' => 'OrderController@postImeiOrder'));
Route::get('bitcoin_payment/{id}', array('uses' => 'OrderController@getBitcoinPayment'));
Route::get('transfer-verified/{id}', array('uses' => 'OrderController@getConfirmationVerified'));
/*************************MESSAGE CONTROLLER*********************** */
Route::get('messages', array('uses' => 'MessageController@getIndex'));
/*********************STORE CONTROLLER**********************************/
Route::get('store', array('uses' => 'StoreController@getIndex'));
Route::get('purchase/{id}', array('uses' => 'StoreController@getStore'));
/******************************VIEW SHARE*************************************/
Route::get('reviews', array('uses' => 'CommentController@getComments'));
View::share('catnav', Comment::take(4)->orderBy('created_at', 'DESC')->get());
View::share('upnav', Update::take(2)->orderBy('created_at', 'DESC')->get());
View::share('products', Product::all());
/****************************************************************************/
Route::get('imei-checker', array('uses' => 'ImeiController@getIndex'));
Route::get('products/{id}', array('uses' => 'CategoryController@getproducts'));
Route::get('blog', array('uses' => 'BlogController@getIndex'));
Route::get('reseller', array('uses' => 'ResellerController@getIndex'));
Route::post('contact', array('uses' => 'ContactController@postReport'));
Route::post('btc', array('uses' => 'BtcController@postBtc'));
Route::post('comment', array('uses' => 'CommentController@postComments'));
/************************GEVEY CONTROLLER8*****************************/
Route::post('gevey', array('uses' => 'GeveyController@postGevey'));
Route::get('gevey', array('uses' => 'GeveyController@getGeveySim'));
/********************ADMIN CONTROLLER**********************************/
Route::get('admin/login', array('uses' => 'AdminController@getAdminLogin'));
Route::group(array('before' => 'role'), function () {