• 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
..
Attendance Loading commit data...
Audit/Models Loading commit data...
Facility Loading commit data...
Financial Loading commit data...
Identity Loading commit data...
Inventory Loading commit data...
Notification Loading commit data...
POS Loading commit data...
Participant Loading commit data...
Pricing Loading commit data...
Scheduling Loading commit data...
Shared Loading commit data...
Training Loading commit data...