2019-07-11 23:55:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
Route::get('/', function () {
|
|
|
|
return view('depot');
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Route::get('/dokumentacja', function(){
|
|
|
|
return view('documents');
|
|
|
|
});
|
|
|
|
|
2020-01-05 10:42:59 +01:00
|
|
|
Route::resource('pdfController', 'pdfController');
|
|
|
|
|
2019-07-11 23:55:51 +02:00
|
|
|
Route::get('/straznica', function(){
|
|
|
|
return view('depot');
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
Route::get('/pojazdy', function(){
|
|
|
|
return view('vehicles');
|
|
|
|
});
|
|
|
|
|
2019-11-23 15:01:59 +01:00
|
|
|
Route::get('/wyjazdy', 'operationsController@create');
|
|
|
|
Route::get('/wyjazdy/add/', 'operationsController@addForm');
|
2019-11-25 01:10:46 +01:00
|
|
|
Route::post('/wyjazdy', 'operationsController@store')->name('operationController.store');
|
2019-12-07 14:50:37 +01:00
|
|
|
Route::post('/wyjazdy/edit/', 'operationsController@update')->name('operationController.update');
|
2019-12-07 14:44:28 +01:00
|
|
|
Route::get('/wyjazdy/edit/{id}', 'operationsController@editForm');
|
2020-01-24 23:05:55 +01:00
|
|
|
Route::delete('wyjazdy/{id}', 'operationsController@destroy')->name('operationController.destroy');
|
2020-02-01 01:03:57 +01:00
|
|
|
Route::post('wyjazdy/pdf/single/', 'operationsController@createSingleOperationPDF');
|
|
|
|
Route::post('wyjazdy/pdf/all/', 'operationsController@createAllOperationsPDF');
|
2019-07-11 23:55:51 +02:00
|
|
|
|
|
|
|
Route::get('/register', 'RegistrationController@create');
|
|
|
|
Route::post('/register', 'RegistrationController@store');
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-11 00:09:22 +02:00
|
|
|
Route::get('/login', 'SessionsController@create');
|
|
|
|
Route::post('/login', 'SessionsController@store');
|
|
|
|
Route::get('/logout', 'SessionsController@destroy');
|
2019-07-11 23:55:51 +02:00
|
|
|
|
2019-09-25 18:42:48 +02:00
|
|
|
|
2019-09-25 18:39:01 +02:00
|
|
|
Route::get('/strazacy', 'fireFightersController@create');
|
|
|
|
Route::get('/strazacy/add', 'fireFightersController@addForm');
|
|
|
|
Route::post('/strazacy', 'fireFightersController@store');
|
2019-10-05 22:29:46 +02:00
|
|
|
Route::get('/strazacy/edit/{id}', 'fireFightersController@editForm');
|
2019-10-06 02:15:16 +02:00
|
|
|
Route::post('/strazacy/edit', 'fireFightersController@update');
|
2020-02-01 01:03:57 +01:00
|
|
|
Route::post('/strazacy/pdf/single/', 'fireFightersController@createSingleFireFighterPDF');
|
2020-02-01 02:14:09 +01:00
|
|
|
Route::post('/strazacy/pdf/all', 'fireFightersController@CreateAllFireFightersPDF');
|
2020-01-31 19:07:55 +01:00
|
|
|
Route::post('strazacy/activate', 'fireFightersController@activate');
|
|
|
|
Route::post('strazacy/deactivate', 'fireFightersController@deactivate');
|
2019-09-25 18:39:01 +02:00
|
|
|
|
|
|
|
|
2020-01-02 14:20:35 +01:00
|
|
|
Route::get('/strazacy/odznaczenia/{id}', 'DecorationsController@create');
|
|
|
|
Route::post('/strazacy/odznaczenia/{id}', 'DecorationsController@store');
|
2020-01-01 03:18:06 +01:00
|
|
|
Route::resource('decorations', 'DecorationsController');
|
2020-01-31 16:45:01 +01:00
|
|
|
Route::delete('/strazacy/odznaczenia/delete/{id}', 'DecorationsController@destroy')->name('DecorationsController.destroy');
|
2020-01-01 03:18:06 +01:00
|
|
|
|
2019-10-02 15:26:30 +02:00
|
|
|
Route::get('/jednostka', 'fireStationController@create');
|
|
|
|
Route::post('/jednostka', 'fireStationController@store');
|
2019-12-07 01:56:30 +01:00
|
|
|
Route::get('/jednostka/edit', 'fireStationController@editForm');
|
|
|
|
Route::post('/jednostka/edit', 'fireStationController@update');
|
2020-02-01 02:14:09 +01:00
|
|
|
Route::post('/jednostka/pdf/single', 'fireStationController@createSingleUnitPDF');
|
2019-10-01 20:03:20 +02:00
|
|
|
|
2019-09-25 17:46:19 +02:00
|
|
|
Route::get('/jednostka/getcounties/{id}','DataController@getCounties');
|
|
|
|
Route::get('/jednostka/getcommunities/{id}','DataController@getCommunities');
|
|
|
|
|
2019-11-17 17:08:02 +01:00
|
|
|
Route::get('/pojazdy', 'VehiclesController@create');
|
|
|
|
Route::get('/pojazdy/add', 'VehiclesController@addForm');
|
|
|
|
Route::post('/pojazdy', 'VehiclesController@store');
|
|
|
|
Route::get('/pojazdy/edit/{id}', 'VehiclesController@editForm');
|
|
|
|
Route::post('/pojazdy/edit', 'VehiclesController@update');
|
2019-12-06 21:22:15 +01:00
|
|
|
Route::resource('vehicles', 'VehiclesController');
|
2019-12-28 19:01:42 +01:00
|
|
|
Route::post('pojazdy/activate', 'VehiclesController@activate');
|
|
|
|
Route::post('pojazdy/deactivate', 'VehiclesController@deactivate');
|
2020-01-31 16:45:01 +01:00
|
|
|
Route::delete('pojazdy/{id}', 'VehiclesController@destroy')->name('VehiclesController.destroy');
|
2019-10-05 22:29:46 +02:00
|
|
|
|
2019-12-06 02:00:06 +01:00
|
|
|
Route::get('/sprzet', 'EquipmentController@create');
|
|
|
|
Route::get('/sprzet/add', 'EquipmentController@addForm');
|
|
|
|
Route::post('/sprzet', 'EquipmentController@store');
|
|
|
|
Route::get('/sprzet/edit/{id}', 'EquipmentController@editForm');
|
|
|
|
Route::post('/sprzet/edit', 'EquipmentController@update');
|
2019-12-06 21:22:15 +01:00
|
|
|
Route::resource('equipment', 'EquipmentController');
|
2020-01-29 01:57:19 +01:00
|
|
|
Route::delete('sprzet/{id}', 'EquipmentController@destroy')->name('EquipmentController.destroy');
|
2019-12-25 22:37:22 +01:00
|
|
|
|
2019-12-25 22:35:20 +01:00
|
|
|
Route::get('/szkolenia', 'trainingsController@create');
|
|
|
|
Route::post('/szkolenia', 'trainingsController@store');
|
2020-01-04 22:04:28 +01:00
|
|
|
Route::post('/szkolenia/rename', 'trainingsController@trainingsRename');
|
2019-12-25 22:35:20 +01:00
|
|
|
Route::get('/szkolenia/addTrainingsFireFighters/{id}', 'trainingsController@addTrainingsFireFighters');
|
|
|
|
Route::post('/szkolenia/addTrainingsFireFighters/', 'trainingsController@ajaxRequest');
|
2020-01-03 05:13:22 +01:00
|
|
|
Route::post('/szkolenia/addTrainingsFireFighters/delete', 'trainingsController@deleteFireFighterTrainings');
|
2020-01-29 01:57:19 +01:00
|
|
|
Route::delete('szkolenia/{id}', 'trainingsController@destroy')->name('trainingsController.destroy');
|
2020-01-03 05:13:22 +01:00
|
|
|
Route::resource('trainings', 'trainingsController');
|
2019-12-25 22:35:20 +01:00
|
|
|
|
2019-12-24 01:37:01 +01:00
|
|
|
Route::get('/userprofile', 'userProfileController@create');
|
|
|
|
Route::get('/userprofile/edit', 'userProfileController@editForm');
|
|
|
|
Route::post('/userprofile/edit', 'userProfileController@update');
|
2019-12-26 16:04:17 +01:00
|
|
|
Route::get('/userprofile/passwordchange', 'ChangePasswordController@create');
|
2019-12-28 15:08:25 +01:00
|
|
|
Route::post('/userprofile/passwordchange', 'ChangePasswordController@update');
|
|
|
|
Route::get('/userprofile/szkolenia', 'userProfileController@userTrainings');
|
2020-01-01 03:18:06 +01:00
|
|
|
Route::get('/userprofile/odznaczenia', 'userProfileController@userDecorations');
|
2019-12-24 01:37:01 +01:00
|
|
|
|
2019-12-25 22:37:22 +01:00
|
|
|
|
2019-10-02 19:01:29 +02:00
|
|
|
Route::get('register/verify/{confirmationCode}', [
|
|
|
|
'as' => 'confirmation_path',
|
|
|
|
'uses' => 'RegistrationController@confirm'
|
|
|
|
]);
|
2019-10-05 23:04:47 +02:00
|
|
|
|
2019-07-11 23:55:51 +02:00
|
|
|
//Auth::routes();
|
|
|
|
//
|
|
|
|
//Route::get('/home', 'HomeController@index')->name('home');
|
2020-01-05 00:24:24 +01:00
|
|
|
|
2020-01-05 10:42:59 +01:00
|
|
|
Route::post('/pdf/sprzet', 'pdfController@createViewEquipment');
|
2020-01-05 11:47:32 +01:00
|
|
|
Route::get('/pdf/wniosek', 'pdfController@createViewDecoration');
|
2020-01-05 11:48:42 +01:00
|
|
|
Route::post('/pdf/strazacy', 'pdfController@createViewFireFighters');
|
2020-01-29 21:01:06 +01:00
|
|
|
|
|
|
|
Route::get('/forgottenPassword', 'resetPasswordController@create');
|
|
|
|
Route::post('/forgottenPassword', 'resetPasswordController@reset');
|