Exemplo n.º 1
0
    Route::POST('cart/jual', array('uses' => 'PenjualanController@addCart', 'as' => 'add.cart'));
    Route::post('laporan/penjualan', ['uses' => 'PenjualanController@getData']);
    Route::get('penjualan/laporan', ['uses' => 'PenjualanController@laporan']);
    Route::get('api/penjualan', ['uses' => 'PenjualanController@apiJual']);
    Route::get('penjualan', array('uses' => 'PenjualanController@index'));
    Route::get('penjualan/cart/delete/{id}', array('uses' => 'PenjualanController@deletecart'));
    Route::get('penjualan/cart', array('uses' => 'PenjualanController@cart'));
    Route::POST('penjualan/store', array('uses' => 'PenjualanController@store', 'as' => 'penjualan.store'));
    Route::get('barang/api', array('uses' => 'PenjualanController@apiBarang'));
    Route::get('pelanggan/api', array('uses' => 'PenjualanController@apiPelanggan'));
    Route::get('penjualan/struk', array('uses' => 'PenjualanController@faktur'));
    Route::DELETE('penjualan/delete/{id}', ['uses' => 'PenjualanController@destroy']);
    Route::get('penjualan/resetCart', ['uses' => 'PenjualanController@resetCart']);
    Route::get('penjualan/show/{id}', ['uses' => 'PenjualanController@show']);
    Route::get('penjualan/delete/{id}', ['uses' => 'PenjualanController@hapus']);
    Route::get('pelanggan', array('uses' => 'PelangganController@index'));
    Route::get('api/pelanggan', array('uses' => 'PelangganController@apiPelanggan'));
    Route::get('api/getId', ['uses' => 'PelangganController@idPelanggan']);
    Route::DELETE('pelanggan/delete/{id}', ['uses' => 'PelangganController@destroy']);
    Route::POST('pelanggan/store', ['uses' => 'PelangganController@store']);
    Route::get('pelanggan/edit/{id}', array('uses' => 'PelangganController@edit'));
    Route::PUT('pelanggan/update/{id}', ['uses' => 'PelangganController@update', 'as' => 'pelanggan.update']);
    Route::get('suplier', array('uses' => 'SuplierController@index'));
    Route::get('api/suplier', array('uses' => 'SuplierController@apiSuplier'));
    Route::get('api/getIdSuplier', ['uses' => 'SuplierController@idSuplier']);
    Route::DELETE('suplier/delete/{id}', ['uses' => 'SuplierController@destroy']);
    Route::POST('suplier/store', ['uses' => 'SuplierController@store']);
    Route::get('suplier/edit/{id}', array('uses' => 'SuplierController@edit'));
    Route::PUT('suplier/update/{id}', ['uses' => 'SuplierController@update', 'as' => 'suplier.update']);
    Route::get('logout', ['uses' => 'UserController@logout']);
});
Exemplo n.º 2
0
     Route::resource('billing/fee_schedules', 'feeSchedulesController');
     //Invoices
     Route::get('billing/invoices/{fee_schedule_code}/bill_class', array('as' => 'billing.invoices.bill_class', 'uses' => 'invoicesController@bill_class'));
     Route::post('billing/invoices/class_invoices', array('as' => 'billing.invoices.class_invoices', 'uses' => 'invoicesController@class_invoices'));
     Route::get('billing/invoices/{student_id}/{fee_schedule_code}/student_invoice', array('as' => 'billing.invoices.student_invoice', 'uses' => 'invoicesController@student_invoice'));
     Route::get('billing/invoices/{student_id}/{fee_schedule_code}/edit_student_invoice', array('as' => 'billing.invoices.edit_student_invoice', 'uses' => 'invoicesController@edit_student_invoice'));
     Route::post('billing/invoices/update_student_invoice', array('as' => 'billing.invoices.update_student_invoice', 'uses' => 'invoicesController@update_student_invoice'));
     Route::get('billing/invoices/{student_id}/{fee_schedule_code}/mail_invoice', array('as' => 'billing.invoices.mail_invoice', 'uses' => 'invoicesController@mail_invoice'));
     Route::resource('billing/invoices', 'invoicesController');
     //Discount Policies
     Route::get('billing/edit_parent_policy', array('as' => 'billing.discount_policies.edit_parent_policy', 'uses' => 'discountPolicyController@edit_parent_policy'));
     Route::get('billing/edit_staff_policy', array('as' => 'billing.discount_policies.edit_staff_policy', 'uses' => 'discountPolicyController@edit_staff_policy'));
     Route::get('billing/edit_scholarship_policy', array('as' => 'billing.discount_policies.edit_scholarship_policy', 'uses' => 'discountPolicyController@edit_scholarship_policy'));
     Route::PUT('billing/update_parent_policy', array('as' => 'billing.discount_policies.update_parent_policy', 'uses' => 'discountPolicyController@update_parent_policy'));
     Route::PUT('billing/update_staff_policy', array('as' => 'billing.discount_policies.update_staff_policy', 'uses' => 'discountPolicyController@update_staff_policy'));
     Route::PUT('billing/update_scholarship_policy', array('as' => 'billing.discount_policies.update_scholarship_policy', 'uses' => 'discountPolicyController@update_scholarship_policy'));
     Route::resource('billing/discount_policies', 'discountPolicyController');
     //Student Ledgers
     Route::resource('billing/student_ledger', 'studentsLedgerController');
 });
 //==========================SETTINGS==========================|
 //============================================================|
 //==========================ACCOUNTS ROUTES=================|
 //============================================================|
 Route::group(['middleware' => ['accounts_officer']], function () {
     Route::post('accounts/payments/pay_invoice', array('as' => 'accounts.payments.pay_invoice', 'uses' => 'paymentsController@pay_invoice'));
     Route::post('accounts/payments/store_pay_invoice', array('as' => 'accounts.payments.store_pay_invoice', 'uses' => 'paymentsController@store_pay_invoice'));
     Route::resource('accounts/payments', 'paymentsController');
     Route::post('accounts/reports/search', array('as' => 'accounts.reports.search', 'uses' => 'accountsController@reports_search'));
     Route::resource('accounts/reports', 'accountsController');
 });
Route::resource('/', 'frontHomeController');
Route::get('/contacto', function () {
    return view('front.contacto.index');
});
Route::get('/institucional', function () {
    return view('front.institucional.index');
});
Route::resource('/productos', 'frontProductosController');
Route::resource('/marcas', 'frontMarcaController');
Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function () {
    Route::resource('usuarios', 'UsersController');
    Route::resource('paises', 'PaisesController');
    Route::resource('provincias', 'ProvinciasController');
    Route::resource('localidades', 'LocalidadesController');
    Route::resource('empresas', 'EmpresasController');
    Route::resource('tipoproducto', 'TipoproductoController');
    Route::resource('rubros', 'RubrosController');
    Route::resource('marcas', 'MarcasController');
    Route::resource('productos', 'ProductosController');
    Route::PUT('usuario/{usuarios}', ['uses' => 'UsersController@actPass', 'as' => 'usuario.actpass']);
});
Route::resource('mail', 'MailController');
// Authentication routes...
Route::get('admin/auth/login', ['uses' => 'Auth\\AuthController@getLogin', 'as' => 'admin.auth.login']);
Route::post('admin/auth/login', ['uses' => 'Auth\\AuthController@postLogin', 'as' => 'admin.auth.login']);
Route::get('admin/auth/logout', ['uses' => 'Auth\\AuthController@getLogout', 'as' => 'admin.auth.logout']);
//Restablecer pass
Route::get('password/email', 'Auth\\PasswordController@getEmail');
Route::post('password/email', 'Auth\\PasswordController@postEmail');
Route::get('password/reset/{token}', 'Auth\\PasswordController@getReset');
Route::post('password/reset', 'Auth\\PasswordController@postReset');
Exemplo n.º 4
0
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', 'PageController@index');
Route::post('/makeCustomerId', 'PageController@makeCustomerId');
Route::get('/{short_name}/service', 'PageController@showAvailableServices');
Route::post('/{short_name}/product', 'PageController@showAvailableProducts');
Route::post('/{short_name}/cart', 'PageController@showShoppingCart');
Route::post('/{short_name}/checkout', 'PageController@proceedToCheckout');
Route::post('/{short_name}/ordersubmitted', 'PageController@submitOrder');
Route::post('/students/products/add', 'CartController@addItem');
Route::post('/students/products/getTheNumberOfItems', 'CartController@getTheNumberOfItems');
Route::get('/page/{id}', 'PageController@showPage');
Route::PUT('/query/{id}', 'PageController@sendEmail');
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
Route::group(['prefix' => 'api'], function () {
    Route::resource('cart', 'CartController');
});
Route::group(['middleware' => 'web'], function () {
    Route::auth();
Exemplo n.º 5
0
Route::group(['middleware' => ['web']], function () {
    Route::resource('emails', 'EmailsController');
    // in emails module, for CRUD
    Route::get('/', ['as' => 'home', 'uses' => 'EmailsController@inbox']);
    // in emails module, for CRUD
    Route::get('/readmail/{id}', 'EmailsController@fetchmail');
    // in emails module, for CRUD
    Route::get('/readmails', 'MailController@readmails');
    // in emails module, for CRUD
    Route::get('image/{id}', ['as' => 'image', 'uses' => 'MailController@get_data']);
    /* get image */
    Route::post('validating-email-settings', ['as' => 'validating.email.settings', 'uses' => 'EmailsController@validatingEmailSettings']);
    Route::get('/diagnos-email', ['as' => 'diag.email', 'uses' => 'DiagnosticController@getDiag']);
    Route::post('/diagnos-email-post', ['as' => 'post.diag.email', 'uses' => 'DiagnosticController@postDiag']);
});
Route::PUT('validating-email-settings-on-update/{id}', ['as' => 'validating.email.settings.update', 'uses' => 'EmailsController@validatingEmailSettingsUpdate']);
// route to check email input validation
/*
 |=============================================================
 |  View all the Routes
 |=============================================================
*/
//Route::get('/aaa', function () {
//    $routeCollection = Route::getRoutes();
//    echo "<table style='width:100%'>";
//    echo '<tr>';
//    echo "<td width='10%'><h4>HTTP Method</h4></td>";
//    echo "<td width='10%'><h4>Route</h4></td>";
//    echo "<td width='10%'><h4>Url</h4></td>";
//    echo "<td width='80%'><h4>Corresponding Action</h4></td>";
//    echo '</tr>';
Exemplo n.º 6
0
    }
    $map = Gmaps::create_map();
    echo "<html><head>\n<script type='text/javascript'>var centreGot = false;</script>" . $map['js'] . "</head><body>" . $map['html'] . "</body></html>";
});
Route::get('login', array('uses' => 'UserController@login'));
Route::POST('login', array('uses' => 'UserController@doLogin'));
Route::get('404', function () {
    return View('errors.404');
});
//Route::resource('barang','BarangController');
Route::group(['middleware' => 'admin'], function () {
    Route::get('role', ['uses' => 'RoleController@index', 'as' => 'role.index']);
    Route::get('role/create', ['uses' => 'RoleController@create']);
    Route::POST('role/store', ['uses' => 'RoleController@store', 'as' => 'role.store']);
    Route::get('role/edit/{id}', ['uses' => 'RoleController@edit']);
    Route::PUT('role/update', ['uses' => 'RoleController@update', 'as' => 'role.update']);
    Route::resource('permission', 'PermissionController');
    Route::resource('user', 'UserController');
    Route::resource('lokasi', 'LokasiController');
    Route::get('subkelompok', ['uses' => 'SubKelompokController@index', 'as' => 'sub.index']);
    Route::get('peminjaman', ['uses' => 'PeminjamanController@index', 'as' => 'peminjaman.index']);
    Route::get('peminjaman/create', ['uses' => 'PeminjamanController@create', 'as' => 'peminjaman.create']);
    Route::POST('peminjaman/store', ['uses' => 'PeminjamanController@store', 'as' => 'peminjaman.store']);
    Route::get('peminjaman/getsubkelompok', ['uses' => 'PeminjamanController@getSubKelompok', 'as' => 'get.sub']);
    Route::get('peminjaman/view/{id}', ['uses' => 'PeminjamanController@show', 'as' => 'peminjaman.view']);
    Route::get('peminjaman/return/{id}', ['uses' => 'PeminjamanController@returnSub']);
    Route::POST('peminjaman/addcart', ['uses' => 'PeminjamanController@addCart', 'as' => 'cart.add']);
    Route::GET('peminjaman/approve/{id}', ['uses' => 'PeminjamanController@approve', 'as' => 'peminjaman.approve']);
    Route::get('get_id_sub_kelompok', ['uses' => 'SubKelompokController@getSubKelompok', 'as' => 'subkelompok.getid']);
    Route::get('get_data_sub_kelompok', ['uses' => 'SubKelompokController@getDataSubKelompok', 'as' => 'subkelompok.getdata']);
    Route::get('api/barang', array('uses' => 'BarangController@apiBarang'));
Exemplo n.º 7
0
 Route::get('employee.listposition', ['as' => 'listposition', 'uses' => 'EmployeeController@api_listposition']);
 Route::post('employee.update', ['as' => 'updateemployee', 'uses' => 'EmployeeController@api_updateemployee']);
 Route::post('employee.delete', ['as' => 'deleteemployee', 'uses' => 'EmployeeController@api_deleteemployee']);
 Route::post('employee.add', ['as' => 'addemployee', 'uses' => 'EmployeeController@api_addemployee']);
 Route::get('items.index', ['as' => 'itemindex', 'uses' => 'ProjectController@view']);
 Route::post('items.update', ['as' => 'itemupdate', 'uses' => 'ProjectController@update']);
 Route::post('items.delete', ['as' => 'itemdelete', 'uses' => 'ProjectController@destroy']);
 Route::post('adduser', ['as' => 'adduser', 'uses' => 'userController@add']);
 /*--------- Project --------------*/
 //route::get('projects', 'ProjectController@index');
 Route::get('projects/getteam/{id}', ['as' => 'projects.getteam', 'uses' => 'ProjectController@getTeam']);
 Route::get('projects/getusers/{id}', ['as' => 'projects.getusers', 'uses' => 'ProjectController@getUsers']);
 Route::get('projects/getstatus', ['as' => 'projects.getstatus', 'uses' => 'ProjectController@getStatus']);
 Route::get('projects/getgroups', ['as' => 'projects.getgroups', 'uses' => 'ProjectController@getGroups']);
 Route::POST('projects/team', ['as' => 'projects.team', 'uses' => 'ProjectController@storeTeam']);
 Route::PUT('projects/team/{id}', ['as' => 'projects.team', 'uses' => 'ProjectController@updateTeam']);
 Route::DELETE('projects/team/{id}', ['as' => 'projects.team', 'uses' => 'ProjectController@destroyTeam']);
 Route::resource('projects', 'ProjectController');
 /*--------- End Project --------------*/
 Route::get('/', ['as' => 'index', 'uses' => 'PageController@index']);
 Route::get('configures', ['as' => 'configures.index', 'uses' => 'ConfigureController@index']);
 Route::post('configures/update', ['as' => 'configures.update', 'uses' => 'ConfigureController@update']);
 Route::resource('users', 'UserController');
 Route::resource('groups', 'GroupController');
 Route::get('groups/{id}/permission', array('as' => 'groups.permission', 'uses' => 'GroupController@getPermission'));
 Route::post('groups/{id}/permission', array('as' => 'groups.permission', 'uses' => 'GroupController@postPermission'));
 Route::resource('features', 'FeatureController');
 Route::resource('modules', 'ModuleController');
 Route::get('showtree/{id}', 'ModuleController@showtree');
 Route::get('parent', ['as' => 'post-parent', 'uses' => 'FeatureController@postFeature']);
 Route::get('languages', ['as' => 'languages.index', 'uses' => 'LanguagesController@index']);
Exemplo n.º 8
0
Route::get('/', function () {
    return view('welcome');
});
Route::post('auth/a', function () {
    return Response::json('a');
});
//Registration Routes
Route::post('auth/register', 'Auth\\RegistrationController@register');
//    Route::get('register/verify/{confirmationCode}', 'Auth\RegistrationController@confirm');
Route::post('auth/login', function () {
    return Response::json(Authorizer::issueAccessToken());
});
Route::post('auth/google', 'Auth\\AuthController@google');
Route::post('auth/facebook', 'Auth\\AuthController@facebook');
Route::get('getProfile', 'ProfileController@getProfile');
Route::PUT('profileUpdate', 'ProfileController@update');
Route::post('changePassword', 'Auth\\PasswordController@changePassword');
Route::post('forgotPassword', 'Auth\\RegistrationController@forgotPassword');
Route::post('resetForgotPassword', 'Auth\\RegistrationController@resetPassword');
Route::get('getFlightBookingDetails', 'FlightBookingDetailsController@index');
Route::post('addFlightBooking', 'FlightBookingDetailsController@store');
Route::get('getBusBookingDetails', 'BusBookingDetailsController@index');
Route::post('addBusBooking', 'BusBookingDetailsController@store');
// Cancellation Details
Route::get('getCancellation', 'CancellationDetailsController@index');
Route::post('addCancellation', 'CancellationDetailsController@store');
Route::resource('adv', 'AdvController');
//Payment Routes
Route::post("bookingPayment/success", 'TransactionDetailsController@paymentSuccessFunction');
Route::post("bookingPayment/failure", 'TransactionDetailsController@paymentFailedFunction');
Route::post("bookingPayment/cancel", 'TransactionDetailsController@paymentCancelFunction');
Exemplo n.º 9
0
    Route::get('admin/services/create', 'ServiceController@create');
    // POST	/services	store	services.store
    Route::post('admin/services', 'ServiceController@store');
    // GET	/services/{id}	show	services.show
    // Route::get('admin/services/{id}', 'ServiceController@show');
    // GET	/services/{id}/edit	edit	services.edit
    Route::get('admin/services/{id}/edit', 'ServiceController@edit');
    // PUT/PATCH	/services/{id}	update	services.update
    Route::PUT('admin/services/{id}', 'ServiceController@update');
    // DELETE	/services/{id}	destroy	services.destroy
    Route::DELETE('admin/services/{id}', 'ServiceController@destroy');
    /**
     * service service_details
     *
     * @Author @mir
     */
    // GET	/service_details	index	service_details.index
    Route::get('admin/service_details/{id}', 'Service_detailController@index');
    // GET	/service_details/create	create	service_details.create
    Route::get('admin/service_details/{id}/create', 'Service_detailController@create');
    // POST	/service_details	store	service_details.store
    Route::post('admin/service_details/{id}', 'Service_detailController@store');
    // GET	/service_details/{id}	show	service_details.show
    // Route::get('admin/service_details/{id}', 'Service_detailController@show');
    // GET	/service_details/{id}/edit	edit	service_details.edit
    Route::get('admin/service_details/{id}/edit', 'Service_detailController@edit');
    // PUT/PATCH	/service_details/{id}	update	service_details.update
    Route::PUT('admin/service_details/{id}', 'Service_detailController@update');
    // DELETE	/service_details/{id}	destroy	service_details.destroy
    Route::DELETE('admin/service_details/{id}', 'Service_detailController@destroy');
});
Exemplo n.º 10
0
     Route::get('/{id}', 'Controller@getPosID');
     Route::get('/{id}', 'Controller@getEmployeeID');
     Route::put('/{id}', 'Controller@updateEmployee');
 });
 Route::group(['prefix' => 'position'], function () {
     Route::get('/', 'Controller@getPosition');
     Route::post('/', 'Controller@createPosition');
     Route::get('/{id}', 'Controller@getPositionByID');
     Route::put('/{id}', 'Controller@updatePosition');
     Route::delete('/{id}', 'Controller@deletePosition');
 });
 Route::group(['prefix' => 'branches'], function () {
     Route::get('/', 'BranchController@getBranches');
     Route::get('/{id}', 'BranchController@getBranchByID');
     Route::post('/', 'BranchController@createBranch');
     Route::PUT('/{id}', 'BranchController@updateBranch');
     Route::delete('{id}', 'BranchController@deleteBranch');
 });
 Route::group(['prefix' => 'users'], function () {
     Route::get('/', 'UserController@getAllUsers');
     Route::get('/getEmployees', 'UserController@getEmployees');
     Route::get('/getUserRoles', 'UserController@getUserRoles');
     Route::post('/', 'UserController@createUser');
     // Route::get('/getRolesPermission','UserController@getRolesPermission');
     Route::get('/getUserID/{id}', 'UserController@getUserID');
     Route::put('/{id}', 'UserController@updateUser');
     // Route::delete('/{id}','UserController@deleteUser');
 });
 Route::group(['prefix' => 'bank'], function () {
     Route::post('/', 'BankController@createBank');
     Route::get('/', 'BankController@getBanks');
Exemplo n.º 11
0
    // check if the user approved or denied the authorization request
    if (!empty($input['approve'])) {
        $code = AuthorizationServer::newAuthorizeRequest('user', $params['user_id'], $params);
        Session::forget('authorize-params');
        return Redirect::to(AuthorizationServer::makeRedirectWithCode($code, $params));
    } else {
        if (!empty($input['deny'])) {
            Session::forget('authorize-params');
            return Redirect::to(AuthorizationServer::makeRedirectWithError($params));
        } else {
            return "Error processing form";
        }
    }
}));
/**
 * Route url with any v# to the resource controller, let IoC Dependency injection determine proper version of API to inject
 */
Route::group(array('prefix' => 'api/{v1}'), function () {
    // Manually define resource routes to catch all resource end points
    // Retrieve data
    Route::GET('{route}', array('as' => 'api.{v1}.{route}.index', 'uses' => 'ResourceController@index'));
    Route::GET('{route}/{id}', array('as' => 'api.{v1}.{route}.show', 'uses' => 'ResourceController@show'));
    // Retrive Forms for Create/Update
    Route::GET('{route}/create', array('as' => 'api.{v1}.{route}.create', 'uses' => 'ResourceController@create'));
    Route::GET('{route}/{id}/edit', array('as' => 'api.{v1}.{route}.edit', 'uses' => 'ResourceController@edit'));
    // Modify Existing Data Create/Update/Edit/Delete
    Route::POST('{route}', array('as' => 'api.{v1}.{route}.store', 'uses' => 'ResourceController@store'));
    Route::PUT('{route}/{id}', array('as' => 'api.{v1}.{route}.update', 'uses' => 'ResourceController@update'));
    Route::PATCH('{route}/{id}', 'ResourceController@update');
    Route::DELETE('{route}/{id}', array('as' => 'api.{v1}.{route}.destroy', 'uses' => 'ResourceController@destroy'));
});