Add Care Pro billing, renewal, and scheduler.
Deploy Ladill Care / deploy (push) Successful in 35s

Organizations can subscribe from wallet, expire correctly on free tier, and renew nightly via care:pro-renew.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-30 01:07:23 +00:00
co-authored by Cursor
parent cd415e918f
commit 4bc485dfea
10 changed files with 403 additions and 4 deletions
+2
View File
@@ -1,3 +1,5 @@
<?php
use Illuminate\Support\Facades\Schedule;
Schedule::command('care:pro-renew')->dailyAt('02:20')->withoutOverlapping();
+4
View File
@@ -18,6 +18,7 @@ use App\Http\Controllers\Care\OnboardingController;
use App\Http\Controllers\Care\PatientController;
use App\Http\Controllers\Care\PrescriptionController;
use App\Http\Controllers\Care\QueueController;
use App\Http\Controllers\Care\ProController;
use App\Http\Controllers\Care\ReportController;
use App\Http\Controllers\Care\ServiceQueueController;
use App\Http\Controllers\Care\SettingsController;
@@ -130,6 +131,9 @@ Route::middleware(['auth', 'platform.session'])->group(function () {
Route::get('/settings', [SettingsController::class, 'edit'])->name('care.settings');
Route::put('/settings', [SettingsController::class, 'update'])->name('care.settings.update');
Route::get('/pro', [ProController::class, 'index'])->name('care.pro.index');
Route::post('/pro/subscribe', [ProController::class, 'subscribe'])->name('care.pro.subscribe');
Route::get('/branches', [BranchController::class, 'index'])->name('care.branches.index');
Route::get('/branches/create', [BranchController::class, 'create'])->name('care.branches.create');
Route::post('/branches', [BranchController::class, 'store'])->name('care.branches.store');