feat(client): add client context to sales and expenses creation

- Disable branch selection in sale form when creating from client context
- Pass client ID to create pages via URL parameter
- Update breadcrumbs to reflect client navigation path
- Simplify relation managers by reusing resource tables and adding custom create actions
This commit is contained in:
Jp
2026-02-15 17:43:33 +08:00
parent ff07f6f810
commit fbc01bf1a4
5 changed files with 87 additions and 57 deletions

View File

@@ -40,6 +40,7 @@ class SaleResource extends Resource
->afterStateUpdated(function ($set, $get) {
$set('branch_id', '');
})
->disabled()
->required()
->live(),
Select::make('branch_id')