@php $generalSetting = App\Models\GeneralSetting::first(); // $roles = App\Models\Role::first(); // $roles = App\Models\Permission::first(); $admin = auth('admin')->user(); $permissionForDashboard = $admin->role->permissions->firstWhere('module_name', 'Dashboard'); $permissionForMembers = $admin->role->permissions->firstWhere('module_name', 'Members'); $permissionForBulk = $admin->role->permissions->firstWhere('module_name', 'Bulk Actions'); $permissionForProfileAttributes = $admin->role->permissions->firstWhere('module_name', 'Profile Attributes'); $permissionForPayments = $admin->role->permissions->firstWhere('module_name', 'Payments'); $permissionForFrontendSettings = $admin->role->permissions->firstWhere('module_name', 'Frontend Settings'); $permissionForFAQs = $admin->role->permissions->firstWhere('module_name', 'FAQs'); $permissionForFAQsCategory = $admin->role->permissions->firstWhere('module_name', 'FAQs Category'); $permissionForBlogs = $admin->role->permissions->firstWhere('module_name', 'Blogs'); $permissionForBlogsCategory = $admin->role->permissions->firstWhere('module_name', 'Blogs Category'); $permissionForPackages = $admin->role->permissions->firstWhere('module_name', 'Packages'); $permissionForFinancial = $admin->role->permissions->firstWhere('module_name', 'Financial'); $permissionForIncome = $admin->role->permissions->firstWhere('module_name', 'Income'); $permissionForDetail = $admin->role->permissions->firstWhere('module_name', 'Detail'); $permissionForMemberReport = $admin->role->permissions->firstWhere('module_name', 'Member Report'); $permissionForNewsletter = $admin->role->permissions->firstWhere('module_name', 'Newsletter'); $permissionForBanners = $admin->role->permissions->firstWhere('module_name', 'Banners'); $permissionForChatVideoSetting = $admin->role->permissions->firstWhere('module_name', 'Chat & Video Setting'); @endphp