web.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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::name('practice-management.')->prefix('practice-management')->group(function () {
  25. $c = 'PracticeManagementController@';
  26. Route::get('rates', 'PracticeManagementController@rates')->name('rates');
  27. Route::get('dashboard', 'PracticeManagementController@dashboard')->name('dashboard');
  28. Route::get('previous-bills', 'PracticeManagementController@previousBills')->name('previousBills');
  29. Route::get('financial-transactions', 'PracticeManagementController@financialTransactions')->name('financialTransactions');
  30. Route::get('pending-bills-to-sign', 'PracticeManagementController@pendingBillsToSign')->name('pendingBillsToSign');
  31. Route::get('hr', 'PracticeManagementController@HRPracticeMan')->name('HRPracticeMan');
  32. Route::get('direct-deposit-settings', 'PracticeManagementController@directDepositSettings')->name('directDepositSettings');
  33. Route::get('w9', 'PracticeManagementController@w9')->name('w9');
  34. Route::get('contract', 'PracticeManagementController@contract')->name('contract');
  35. });
  36. });