Add Afia and notifications to the top bar, remove the duplicate desktop page title, wire notification and AI routes, and fix mobile nav notification links. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Auth\SsoLoginController;
|
||||
use App\Http\Controllers\Care\AiController;
|
||||
use App\Http\Controllers\NotificationController;
|
||||
use App\Http\Controllers\Care\AuditLogController;
|
||||
use App\Http\Controllers\Care\AppointmentController;
|
||||
use App\Http\Controllers\Care\BillController;
|
||||
@@ -35,10 +37,17 @@ Route::get('/sso/platform-signed-out', [SsoLoginController::class, 'platformSign
|
||||
Route::get('/signed-out', fn () => auth()->check() ? redirect()->route('care.dashboard') : view('auth.signed-out'))->name('care.signed-out');
|
||||
|
||||
Route::middleware(['auth', 'platform.session'])->group(function () {
|
||||
Route::get('/notifications', [NotificationController::class, 'index'])->name('notifications.index');
|
||||
Route::get('/notifications/unread', [NotificationController::class, 'unread'])->name('notifications.unread');
|
||||
Route::post('/notifications/{id}/read', [NotificationController::class, 'markAsRead'])->name('notifications.mark-read');
|
||||
Route::post('/notifications/mark-all-read', [NotificationController::class, 'markAllAsRead'])->name('notifications.mark-all-read');
|
||||
|
||||
Route::get('/onboarding', [OnboardingController::class, 'show'])->name('care.onboarding.show');
|
||||
Route::post('/onboarding', [OnboardingController::class, 'store'])->name('care.onboarding.store');
|
||||
|
||||
Route::middleware(['care.setup'])->group(function () {
|
||||
Route::post('/ai/chat', [AiController::class, 'chat'])->middleware('throttle:30,1')->name('care.ai.chat');
|
||||
|
||||
Route::get('/dashboard', [DashboardController::class, 'index'])->name('care.dashboard');
|
||||
|
||||
Route::get('/patients', [PatientController::class, 'index'])->name('care.patients.index');
|
||||
|
||||
Reference in New Issue
Block a user