Commit 77d245c2 authored by Mahmoud Aglan's avatar Mahmoud Aglan

permission matrix fix

parent 7aa00a7a
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('academies', [
'academy.view' => ['ar' => 'عرض الأكاديميات', 'en' => 'View Academies'],
'academy.manage' => ['ar' => 'إدارة الأكاديميات', 'en' => 'Manage Academies'],
'academy.enroll' => ['ar' => 'تسجيل في الأكاديمية', 'en' => 'Enroll in Academy'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('academy_contracts', [
'academy_contract.view' => ['ar' => 'عرض عقود الأكاديميات', 'en' => 'View Academy Contracts'],
'academy_contract.manage' => ['ar' => 'إدارة عقود الأكاديميات', 'en' => 'Manage Academy Contracts'],
'academy_contract.settlement' => ['ar' => 'تسوية عقود الأكاديميات', 'en' => 'Settle Academy Contracts'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('achievements', [
'achievement.view' => ['ar' => 'عرض الإنجازات', 'en' => 'View Achievements'],
'achievement.manage' => ['ar' => 'إدارة الإنجازات', 'en' => 'Manage Achievements'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('activity_subscriptions', [
'activity_sub.view' => ['ar' => 'عرض اشتراكات الأنشطة', 'en' => 'View Activity Subscriptions'],
'activity_sub.manage_pricing' => ['ar' => 'إدارة تسعير الأنشطة', 'en' => 'Manage Activity Pricing'],
'activity_sub.generate' => ['ar' => 'توليد اشتراكات الأنشطة', 'en' => 'Generate Activity Subscriptions'],
'activity_sub.collect' => ['ar' => 'تحصيل اشتراكات الأنشطة', 'en' => 'Collect Activity Subscriptions'],
'activity_sub.exempt' => ['ar' => 'إعفاء من اشتراك النشاط', 'en' => 'Exempt from Activity Subscription'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('coaches', [
'coach.view' => ['ar' => 'عرض المدربين', 'en' => 'View Coaches'],
'coach.manage' => ['ar' => 'إدارة المدربين', 'en' => 'Manage Coaches'],
'coach.rate' => ['ar' => 'تقييم المدربين', 'en' => 'Rate Coaches'],
'coach.manage_ratings' => ['ar' => 'إدارة تقييمات المدربين','en' => 'Manage Coach Ratings'],
'coach.view_performance' => ['ar' => 'عرض أداء المدربين', 'en' => 'View Coach Performance'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('disciplines', [
'discipline.view' => ['ar' => 'عرض الألعاب', 'en' => 'View Disciplines'],
'discipline.manage' => ['ar' => 'إدارة الألعاب', 'en' => 'Manage Disciplines'],
'waitlist.view' => ['ar' => 'عرض قائمة الانتظار', 'en' => 'View Waitlist'],
'waitlist.manage' => ['ar' => 'إدارة قائمة الانتظار', 'en' => 'Manage Waitlist'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('facility_dashboards', [
'facility.dashboard' => ['ar' => 'لوحة تحكم المرافق', 'en' => 'Facility Dashboard'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('facility_grids', [
'facility_grid.view' => ['ar' => 'عرض شبكة المرافق', 'en' => 'View Facility Grid'],
'facility_grid.manage' => ['ar' => 'إدارة شبكة المرافق','en' => 'Manage Facility Grid'],
]);
......@@ -7,7 +7,9 @@ use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('installments', [
'installment.view' => ['ar' => 'عرض الأقساط', 'en' => 'View Installments'],
'installment.create' => ['ar' => 'إنشاء قسط', 'en' => 'Create Installment'],
'installment.create_plan' => ['ar' => 'إنشاء خطة تقسيط', 'en' => 'Create Installment Plan'],
'installment.pay' => ['ar' => 'سداد قسط', 'en' => 'Pay Installment'],
'installment.record_payment' => ['ar' => 'تسجيل دفعة قسط', 'en' => 'Record Installment Payment'],
'installment.modify_plan' => ['ar' => 'تعديل خطة التقسيط', 'en' => 'Modify Installment Plan'],
]);
\ No newline at end of file
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('match_center', [
'match_center.view' => ['ar' => 'عرض مركز المباريات', 'en' => 'View Match Center'],
'match_center.manage' => ['ar' => 'إدارة مركز المباريات', 'en' => 'Manage Match Center'],
'match_center.live_entry' => ['ar' => 'إدخال بيانات مباشر', 'en' => 'Live Match Entry'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('news', [
'news.view' => ['ar' => 'عرض الأخبار', 'en' => 'View News'],
'news.manage' => ['ar' => 'إدارة الأخبار', 'en' => 'Manage News'],
]);
......@@ -29,6 +29,9 @@ PermissionRegistry::register('payments', [
'payment.process_check' => ['ar' => 'معالجة دفع بشيك', 'en' => 'Process Check Payment'],
'payment.process_visa' => ['ar' => 'معالجة دفع فيزا', 'en' => 'Process Visa Payment'],
'payment.view' => ['ar' => 'عرض المدفوعات', 'en' => 'View Payments'],
'payment.create' => ['ar' => 'إنشاء مدفوعات', 'en' => 'Create Payment'],
'payment.void' => ['ar' => 'إلغاء مدفوعات', 'en' => 'Void Payment'],
'payment.collect' => ['ar' => 'تحصيل مدفوعات', 'en' => 'Collect Payment'],
'payment.void_receipt' => ['ar' => 'إلغاء إيصال', 'en' => 'Void Receipt'],
'payment.refund' => ['ar' => 'استرداد', 'en' => 'Refund Payment'],
]);
......
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('player_affairs', [
'player.view' => ['ar' => 'عرض اللاعبين', 'en' => 'View Players'],
'player.register' => ['ar' => 'تسجيل لاعب', 'en' => 'Register Player'],
'player.edit' => ['ar' => 'تعديل بيانات لاعب', 'en' => 'Edit Player'],
'player.manage_card' => ['ar' => 'إدارة كروت اللاعبين', 'en' => 'Manage Player Cards'],
'player.manage_medical' => ['ar' => 'إدارة الشهادات الطبية', 'en' => 'Manage Medical Records'],
'player.approve_medical' => ['ar' => 'اعتماد الشهادات الطبية','en' => 'Approve Medical Records'],
'player.evaluate' => ['ar' => 'تقييم لاعب', 'en' => 'Evaluate Player'],
'player.manage_injuries' => ['ar' => 'إدارة الإصابات', 'en' => 'Manage Injuries'],
'player.manage_fitness' => ['ar' => 'إدارة اللياقة البدنية', 'en' => 'Manage Fitness Tests'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('playground_admin', [
'playground.view' => ['ar' => 'عرض الملاعب', 'en' => 'View Playgrounds'],
'playground.manage' => ['ar' => 'إدارة الملاعب', 'en' => 'Manage Playgrounds'],
'playground.schedule' => ['ar' => 'جدولة الملاعب', 'en' => 'Schedule Playgrounds'],
'playground.attendance' => ['ar' => 'حضور الملاعب', 'en' => 'Playground Attendance'],
'playground.dashboard' => ['ar' => 'لوحة تحكم الملاعب', 'en' => 'Playground Dashboard'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('pool_management', [
'pool.view' => ['ar' => 'عرض حمام السباحة', 'en' => 'View Pool'],
'pool.manage' => ['ar' => 'إدارة حمام السباحة', 'en' => 'Manage Pool'],
'pool.book' => ['ar' => 'حجز حمام السباحة', 'en' => 'Book Pool'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('rentals', [
'rental.view' => ['ar' => 'عرض الإيجارات', 'en' => 'View Rentals'],
'rental.manage_entity' => ['ar' => 'إدارة كيانات الإيجار','en' => 'Manage Rental Entities'],
'rental.manage_contract' => ['ar' => 'إدارة عقود الإيجار', 'en' => 'Manage Rental Contracts'],
'rental.approve' => ['ar' => 'اعتماد الإيجارات', 'en' => 'Approve Rentals'],
'rental.manage_deposit' => ['ar' => 'إدارة تأمينات الإيجار','en' => 'Manage Rental Deposits'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('sessions', [
'session.view' => ['ar' => 'عرض الحصص', 'en' => 'View Sessions'],
'session.attendance' => ['ar' => 'حضور الحصص', 'en' => 'Session Attendance'],
'session.manage' => ['ar' => 'إدارة الحصص', 'en' => 'Manage Sessions'],
'session.view_feedback' => ['ar' => 'عرض تقييم الحصص','en' => 'View Session Feedback'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('sports', [
'sports.view' => ['ar' => 'عرض الرياضات', 'en' => 'View Sports'],
'sports.add' => ['ar' => 'إضافة رياضة', 'en' => 'Add Sport'],
'sports.convert' => ['ar' => 'تحويل رياضة', 'en' => 'Convert Sport'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('sports_dashboard', [
'sports_dashboard.view' => ['ar' => 'عرض لوحة الأنشطة الرياضية', 'en' => 'View Sports Dashboard'],
'sports_dashboard.export' => ['ar' => 'تصدير بيانات الرياضات', 'en' => 'Export Sports Data'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('training', [
'training.submit_feedback' => ['ar' => 'تقديم تقييم التدريب', 'en' => 'Submit Training Feedback'],
'training.view_feedback' => ['ar' => 'عرض تقييمات التدريب', 'en' => 'View Training Feedback'],
]);
<?php
declare(strict_types=1);
// Module disabled — replaced by SportsActivity module
use App\Core\Registries\PermissionRegistry;
PermissionRegistry::register('training_groups', [
'training_group.view' => ['ar' => 'عرض مجموعات التدريب', 'en' => 'View Training Groups'],
'training_group.manage' => ['ar' => 'إدارة مجموعات التدريب', 'en' => 'Manage Training Groups'],
]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment