Fix avatar wallet balance by serving JSON from /wallet/balance.
Deploy Ladill Care / deploy (push) Successful in 28s

The dropdown was fetching care.wallet (account redirect HTML) instead of a
billing balance API, so Alpine always fell back to "View wallet".

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 18:13:13 +00:00
co-authored by Cursor
parent 2cff8fdd6c
commit 61b901095f
5 changed files with 127 additions and 1 deletions
+3
View File
@@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\Auth\SsoLoginController;
use App\Http\Controllers\WalletBalanceController;
use App\Http\Controllers\Care\AiController;
use App\Http\Controllers\Care\AppointmentController;
use App\Http\Controllers\Care\AppointmentMeetController;
@@ -67,6 +68,8 @@ Route::middleware(['auth', 'platform.session'])->group(function () {
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('/wallet/balance', [WalletBalanceController::class, 'balance'])->name('wallet.balance');
Route::get('/onboarding', [OnboardingController::class, 'show'])->name('care.onboarding.show');
Route::post('/onboarding', [OnboardingController::class, 'store'])->name('care.onboarding.store');