added watermark settings tab on the branding page and added more package details to the billing page, added a new guest notifications page

This commit is contained in:
Codex Agent
2025-12-17 16:39:25 +01:00
parent efe697f155
commit 5f3e7ae8c8
25 changed files with 2062 additions and 202 deletions

View File

@@ -30,8 +30,16 @@ class TenantPackageController extends Controller
->get();
$packages->each(function ($package) {
$package->remaining_events = $package->package->max_events_per_year - $package->used_events;
$package->package_limits = $package->package->getAttributes(); // Or custom accessor for limits
$pkg = $package->package;
$package->remaining_events = $pkg->max_events_per_year - $package->used_events;
$package->package_limits = array_merge(
$pkg->limits,
[
'branding_allowed' => $pkg->branding_allowed,
'watermark_allowed' => $pkg->watermark_allowed,
'features' => $pkg->features,
]
);
});
return response()->json([