web.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13. /*
  14. * if no pro performer, then redirect to /login
  15. * [Cell Number] [Password] field -> proLogInWithPassword -> /pro/dashboard
  16. * -> they are authenticated in... see the home dashboard... logout button to -> /login
  17. */
  18. Route::get('login', 'LoginController@showLoginForm')->name('login');
  19. Route::post('login', 'LoginController@login');
  20. Route::post('logout', 'LoginController@logout')->name('logout');
  21. Route::middleware('pro.auth')->group(function () {
  22. Route::get('/', 'HomeController@dashboard')->name('dashboard');
  23. Route::get('/patients', 'HomeController@patients')->name('patients');
  24. Route::prefix('practice-management')->group(function () {

  25. Route::get('dashboard', 'PracticeManagementController@dashboard')->name('dashboard');

  26. Route::get('rates', 'PracticeManagementController@rates')->name('rates');

  27. Route::get('previous-bills', 'PracticeManagementController@previousBills')->name('previousBills');

  28. Route::get('financial-transactions', 'PracticeManagementController@financialTransactions')->name('financialTransactions');

  29. Route::get('pending-bills-to-sign', 'PracticeManagementController@pendingBillsToSign')->name('pendingBillsToSign');

  30. Route::get('hr', 'PracticeManagementController@HRPracticeMan')->name('HRPracticeMan');

  31. Route::get('direct-deposit-settings', 'PracticeManagementController@directDepositSettings')->name('directDepositSettings');

  32. Route::get('w9', 'PracticeManagementController@w9')->name('w9');

  33. Route::get('contract', 'PracticeManagementController@contract')->name('contract');

  34. });
  35. });