• Mahmoud Aglan's avatar
    Add financial overview dashboard, enforce setup wizard, fix permission system · 71a6c06f
    Mahmoud Aglan authored
    Financial Overview:
    - New FinancialOverview Livewire component with P&L, break-even gauge,
      facility costs breakdown, revenue sources, collection rate
    - Migration adds monthly_rental_cost to facilities table
    - Monthly cost field added to facility form
    - Sidebar entry under المالية section
    
    Setup Wizard Enforcement:
    - Activities are now mandatory (min 1)
    - Programs are now mandatory with price > 0
    - Facilities are now mandatory with monthly cost field
    - Auto-creates BasePrice records for programs during setup
    - Facility form includes operating hours and monthly cost
    
    Permission System Fix:
    - PermissionSeeder now called from DatabaseSeeder (has correct permission
      names matching route middleware: pos.sell, attendance.mark, etc.)
    - Branch manager gets all relevant module prefixes (inventory, pricing,
      wallets, activities, audit, notifications)
    - Receptionist gets pos.sell, pos.list, cash_sessions.manage
    - Accountant gets reports.view, wallets.view, pricing.list
    - PermissionService falls back to roles() pivot when primaryRole is null
    - SetCurrentAcademy middleware eager-loads roles.permissions as fallback
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    71a6c06f
Name
Last commit
Last update
..
AuthService.php Loading commit data...
BranchService.php Loading commit data...
NationalIdService.php Loading commit data...
PermissionService.php Loading commit data...
PersonService.php Loading commit data...
RoleService.php Loading commit data...