Changeset c6b84df for routes/web.php


Ignore:
Timestamp:
10/21/21 23:45:59 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
4b7e2d3
Parents:
6b95845
Message:

added fileTypes controller, notifications, excel export, edited views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • routes/web.php

    r6b95845 rc6b84df  
    5555    Route::patch("/settings/password", "Dashboard\SettingsController@updatePassword")->name("dashboard.settings.password");
    5656    Route::patch("/settings/email", "Dashboard\SettingsController@updateEmail")->name("dashboard.settings.email");
     57    Route::patch("/settings/file-types", "Dashboard\SettingsController@fileTypes")->name("dashboard.settings.file-types");
    5758
    5859
     
    6566    });
    6667
    67     Route::group(['middleware' => 'permission:create_user'], function () {
     68        Route::group(['middleware' => 'permission:create_user'], function () {
    6869        Route::get("/users/create", "Dashboard\UsersController@create")->name("dashboard.users.create");
    6970        Route::post("/users/store", "Dashboard\UsersController@store")->name("dashboard.users.store");
     
    7172        Route::patch("/users/{id}/edit", "Dashboard\UsersController@edit")->name("dashboard.users.edit");
    7273        Route::patch("/users/{id}/editUserData", "Dashboard\UsersController@editUserData")->name("dashboard.users.editUserData");
    73     });
     74        Route::get('users/export', 'Dashboard\ExportExcelController@ExportUsers')->name("dashboard.users.export");
     75        });
    7476
    7577    // Departments
     
    8183        Route::patch("/departments/{id}/edit", "Dashboard\DepartmentsController@edit")->name("dashboard.departments.edit");
    8284        Route::delete("/departments/{id}/destroy", "Dashboard\DepartmentsController@destroy")->name("dashboard.departments.destroy");
     85        Route::get('/departments/download-all','Dashboard\DepartmentsController@downloadAll')->name('dashboard.departments.downloadAll');
     86        Route::get('/departments/{id}/download-department','Dashboard\DepartmentsController@downloadDepartment')->name('dashboard.departments.downloadDepartment');
    8387    });
    8488
    85     // Documents
    86     Route::get("/documents", "Dashboard\DocumentsController@index")->name("dashboard.documents.index");
    87     Route::get("/documents/create", "Dashboard\DocumentsController@create")->name("dashboard.documents.create");
    88     Route::post("/documents/store", "Dashboard\DocumentsController@store")->name("dashboard.documents.store");
    89     Route::get("/documents/{id}/edit", "Dashboard\DocumentsController@editShow")->name("dashboard.documents.editShow");
    90     Route::patch("/documents/{id}/edit", "Dashboard\DocumentsController@edit")->name("dashboard.documents.edit");
    91     Route::patch("/documents/{id}/block", "Dashboard\DocumentsController@block")->name("dashboard.documents.block");
    92     Route::patch("/documents/{id}/unblock", "Dashboard\DocumentsController@unblock")->name("dashboard.documents.unblock");
    93     Route::patch("/documents/{id}/confirm", "Dashboard\DocumentsController@confirm")->name("dashboard.documents.confirm");
    94     Route::delete("/documents/{id}/destroy", "Dashboard\DocumentsController@destroy")->name("dashboard.documents.destroy");
    95     Route::patch('/documents/toggle-important/{id}', "Dashboard\DocumentsController@toggleImportant")->name("dashboard.documents.toggleImportant");
    96     Route::delete("documents/{id}/deleteFile", "Dashboard\DocumentsController@deleteFile")->name("dashboard.documents.deleteFile");
    97     Route::get("documents/{id}/downloadFile", "Dashboard\DocumentsController@downloadFile")->name("dashboard.documents.downloadFile");
    98     Route::patch("documents/{id}/renameFile", "Dashboard\DocumentsController@renameFile")->name("dashboard.documents.renameFile");
     89    // Folders
     90    Route::get("/folders", "Dashboard\FoldersController@index")->name("dashboard.folders.index");
     91    Route::get("/folders/create", "Dashboard\FoldersController@create")->name("dashboard.folders.create");
     92    Route::post("/folders/store", "Dashboard\FoldersController@store")->name("dashboard.folders.store");
     93    Route::get("/folders/{id}/edit", "Dashboard\FoldersController@editShow")->name("dashboard.folders.editShow");
     94    Route::patch("/folders/{id}/edit", "Dashboard\FoldersController@edit")->name("dashboard.folders.edit");
     95    Route::patch("/folders/{id}/block", "Dashboard\FoldersController@block")->name("dashboard.folders.block");
     96    Route::patch("/folders/{id}/unblock", "Dashboard\FoldersController@unblock")->name("dashboard.folders.unblock");
     97    Route::patch("/folders/{id}/confirm", "Dashboard\FoldersController@confirm")->name("dashboard.folders.confirm");
     98    Route::delete("/folders/{id}/destroy", "Dashboard\FoldersController@destroy")->name("dashboard.folders.destroy");
     99    Route::patch('/folders/toggle-important/{id}', "Dashboard\FoldersController@toggleImportant")->name("dashboard.folders.toggleImportant");
     100    Route::get('/folders/{id}/download-folder','Dashboard\FoldersController@downloadFolder')->name('dashboard.folders.downloadFolder');
     101    Route::get('/folders/{id}/files','Dashboard\FoldersController@files')->name('dashboard.folders.files');
     102    Route::get('folders/export', 'Dashboard\ExportExcelController@ExportFolders')->name("dashboard.folders.export");
     103
     104    // Files
     105    Route::get("files", "Dashboard\FilesController@index")->name("dashboard.files.index");
     106    Route::get("files/{id}/download-file", "Dashboard\FilesController@downloadFile")->name("dashboard.files.downloadFile");
     107    Route::patch("files/{id}/rename-file", "Dashboard\FilesController@renameFile")->name("dashboard.files.renameFile");
     108    Route::post("/files/store", "Dashboard\FilesController@store")->name("dashboard.files.store");
     109    Route::delete("files/{id}/delete-file", "Dashboard\FilesController@deleteFile")->name("dashboard.files.deleteFile");
     110    Route::get('files/export', 'Dashboard\ExportExcelController@ExportFiles')->name("dashboard.files.export");
     111
     112    // Notifications
     113    Route::get("/notifications", "Dashboard\NotificationsController@notifications")->name("dashboard.notifications.index");
     114    Route::post("/get-notifications", "Dashboard\NotificationsController@showNotifications")->name("dashboard.notifications.store");
     115
     116
    99117});
Note: See TracChangeset for help on using the changeset viewer.