web.php 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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('/new-patient', 'HomeController@newPatient')->name('new-patient');
  24. Route::get('/patients', 'HomeController@patients')->name('patients');
  25. Route::name('practice-management.')->prefix('practice-management')->group(function () {
  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@hr')->name('hr');
  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. Route::name('patients.view.')->prefix('patients/view/{patient}')->group(function () {
  37. Route::get('', 'PatientController@dashboard')->name('dashboard');
  38. Route::get('care-plan', 'PatientController@carePlan')->name('care-plan');
  39. Route::get('medications', 'PatientController@medications')->name('medications');
  40. Route::get('dx-and-focus-areas', 'PatientController@dxAndFocusAreas')->name('dx-and-focus-areas');
  41. Route::get('care-team', 'PatientController@careTeam')->name('care-team');
  42. Route::get('measurements', 'PatientController@measurements')->name('measurements');
  43. Route::get('labs-and-studies', 'PatientController@labsAndStudies')->name('labs-and-studies');
  44. Route::get('history', 'PatientController@history')->name('history');
  45. Route::get('immunizations', 'PatientController@immunizations')->name('immunizations');
  46. Route::get('allergies', 'PatientController@allergies')->name('allergies');
  47. Route::get('notes', 'PatientController@notes')->name('notes');
  48. Route::get('flowsheets', 'PatientController@flowSheets')->name('flowsheets');
  49. Route::get('demographics', 'PatientController@demographics')->name('demographics');
  50. Route::get('account', 'PatientController@account')->name('account');
  51. Route::get('care-checklist', 'PatientController@careChecklist')->name('care-checklist');
  52. Route::get('documents', 'PatientController@documents')->name('documents');
  53. Route::get('education', 'PatientController@education')->name('education');
  54. Route::get('messaging', 'PatientController@messaging')->name('messaging');
  55. Route::get('duplicate', 'PatientController@duplicate')->name('duplicate');
  56. });
  57. // 2-pane outer page housing lhs (practice management) and rhs (video call)
  58. Route::get('/mc/{fragment?}', 'HomeController@mc')
  59. ->where('fragment', '.*')
  60. ->name('mc');
  61. // pro meeting
  62. Route::get('/pro/meet/{uid?}', 'PracticeManagementController@meet');
  63. Route::get('/pro/get-opentok-session-key/{uid}', 'PracticeManagementController@getOpentokSessionKey');
  64. });