<?php
/**
 * SalonPro X - Permissions Configuration Map
 * Maps module -> actions -> permission slugs
 */

define('PERMISSIONS', serialize([
    'Dashboard' => [
        'view' => 'dashboard_view',
    ],
    'Authentication' => [
        'login' => 'auth_login',
        'logout' => 'auth_logout',
        'profile' => 'auth_profile',
    ],
    'Roles' => [
        'view' => 'roles_view',
        'create' => 'roles_create',
        'edit' => 'roles_edit',
        'delete' => 'roles_delete',
    ],
    'Users' => [
        'view' => 'users_view',
        'create' => 'users_create',
        'edit' => 'users_edit',
        'delete' => 'users_delete',
    ],
    'Branches' => [
        'view' => 'branches_view',
        'create' => 'branches_create',
        'edit' => 'branches_edit',
        'delete' => 'branches_delete',
    ],
    'Customers' => [
        'view' => 'customers_view',
        'create' => 'customers_create',
        'edit' => 'customers_edit',
        'delete' => 'customers_delete',
    ],
    'Appointments' => [
        'view' => 'appointments_view',
        'create' => 'appointments_create',
        'edit' => 'appointments_edit',
        'delete' => 'appointments_delete',
        'checkin' => 'appointments_checkin',
        'calendar' => 'appointments_calendar',
    ],
    'Services' => [
        'view' => 'services_view',
        'create' => 'services_create',
        'edit' => 'services_edit',
        'delete' => 'services_delete',
    ],
    'Packages' => [
        'view' => 'packages_view',
        'create' => 'packages_create',
        'edit' => 'packages_edit',
        'delete' => 'packages_delete',
    ],
    'POS' => [
        'view' => 'pos_view',
        'create' => 'pos_create',
        'invoice_view' => 'pos_invoice_view',
        'refund' => 'pos_refund',
    ],
    'Invoices' => [
        'view' => 'invoices_view',
        'create' => 'invoices_create',
        'edit' => 'invoices_edit',
        'delete' => 'invoices_delete',
        'payment' => 'invoices_payment',
    ],
    'Employees' => [
        'view' => 'employees_view',
        'create' => 'employees_create',
        'edit' => 'employees_edit',
        'delete' => 'employees_delete',
    ],
    'Attendance' => [
        'view' => 'attendance_view',
        'manage' => 'attendance_manage',
    ],
    'Commissions' => [
        'view' => 'commissions_view',
        'manage' => 'commissions_manage',
        'pay' => 'commissions_pay',
    ],
    'Salary' => [
        'view' => 'salary_view',
        'manage' => 'salary_manage',
        'pay' => 'salary_pay',
    ],
    'Inventory' => [
        'view' => 'inventory_view',
        'create' => 'inventory_create',
        'edit' => 'inventory_edit',
        'delete' => 'inventory_delete',
    ],
    'Suppliers' => [
        'view' => 'suppliers_view',
        'create' => 'suppliers_create',
        'edit' => 'suppliers_edit',
        'delete' => 'suppliers_delete',
    ],
    'Purchases' => [
        'view' => 'purchases_view',
        'create' => 'purchases_create',
        'edit' => 'purchases_edit',
        'receive' => 'purchases_receive',
        'approve' => 'purchases_approve',
    ],
    'Expenses' => [
        'view' => 'expenses_view',
        'create' => 'expenses_create',
        'edit' => 'expenses_edit',
        'delete' => 'expenses_delete',
    ],
    'Income' => [
        'view' => 'income_view',
        'create' => 'income_create',
    ],
    'Accounting' => [
        'view' => 'accounting_view',
        'cashbook' => 'accounting_cashbook',
        'bankbook' => 'accounting_bankbook',
        'pettycash' => 'accounting_pettycash',
    ],
    'Membership' => [
        'view' => 'membership_view',
        'create' => 'membership_create',
        'edit' => 'membership_edit',
        'delete' => 'membership_delete',
    ],
    'Loyalty' => [
        'view' => 'loyalty_view',
        'manage' => 'loyalty_manage',
    ],
    'GiftCards' => [
        'view' => 'giftcards_view',
        'create' => 'giftcards_create',
        'manage' => 'giftcards_manage',
    ],
    'Marketing' => [
        'view' => 'marketing_view',
        'create' => 'marketing_create',
        'send' => 'marketing_send',
    ],
    'Reports' => [
        'view' => 'reports_view',
        'export' => 'reports_export',
    ],
    'Settings' => [
        'view' => 'settings_view',
        'edit' => 'settings_edit',
    ],
    'AuditLogs' => [
        'view' => 'audit_view',
    ],
    'Backup' => [
        'create' => 'backup_create',
        'restore' => 'backup_restore',
        'download' => 'backup_download',
    ],
]));
