@if($community->gift_app_community==0 and $selected_pricing_plan_type!='giftapp')
  • {{ trans('internal-collaborations.post-actions') }}
  • @php $taskFeatureIds = ['11','12','13','14']; $taskMenuItems = [ '11' => ['label' => trans('internal-collaborations.task-management'), 'href' => $communityPresenter->url('alltasks')], '12' => ['label' => trans('internal-collaborations.daily-reporting'), 'href' => '#'], '13' => ['label' => trans('internal-collaborations.task-complete-report'), 'href' => '#'], '14' => ['label' => trans('internal-collaborations.notes'), 'href' => $communityPresenter->url('personalnotes')], ]; $enabledTaskFeatures = ($menus_activated == 'yes') ? $taskFeatureIds : array_values(array_intersect($taskFeatureIds, $features)); $enabledTaskLookup = array_fill_keys($enabledTaskFeatures, true); @endphp @if($menus_activated=='yes' || !empty($enabledTaskFeatures))
  • {{ trans('internal-collaborations.tasks') }}
  • @endif @php // Campaign $campaignFeatureIds = ['3','16','5','17','18','19']; $campaignMenuItems = [ '3' => ['label' => trans('internal-collaborations.email'), 'href' => $communityPresenter->url('campaigns')], '5' => ['label' => trans('internal-collaborations.forms-surveys'), 'href' => $communityPresenter->url('cmsurveys')], '16' => ['label' => trans('internal-collaborations.contact-list'), 'href' => $communityPresenter->url('campaignmailingcat')], '17' => ['label' => trans('internal-collaborations.prospects'), 'href' => '#'], '18' => ['label' => trans('internal-collaborations.qualified-lead'), 'href' => '#'], '19' => ['label' => trans('internal-collaborations.organize-awards'), 'href' => $communityPresenter->url('longforms')], ]; $enabledCampaignFeatures = []; if ($menus_activated == 'yes') { $enabledCampaignFeatures = $campaignFeatureIds; } else { foreach ($campaignFeatureIds as $featureId) { if (isset($featuresLookup[$featureId])) { $enabledCampaignFeatures[] = $featureId; } } } $enabledCampaignLookup = !empty($enabledCampaignFeatures) ? array_fill_keys($enabledCampaignFeatures, true) : []; // Customers $customerFeatureIds = ['6','20','58']; $customerMenuItems = [ '6' => ['type' => 'link', 'label' => trans('internal-collaborations.agreement'), 'href' => $communityPresenter->url('pdf-sign')], '20' => ['type' => 'link', 'label' => trans('internal-collaborations.engagement'), 'href' => '#'], '58' => [ 'type' => 'submenu', 'label' => trans('internal-collaborations.projects'), 'href' => '#', 'children' => [ //['label' => 'Task Type', 'href' => ''], ], ], ]; $enabledCustomerFeatures = []; if ($menus_activated == 'yes') { $enabledCustomerFeatures = $customerFeatureIds; } else { foreach ($customerFeatureIds as $featureId) { if (isset($featuresLookup[$featureId])) { $enabledCustomerFeatures[] = $featureId; } } } $enabledCustomerLookup = !empty($enabledCustomerFeatures) ? array_fill_keys($enabledCustomerFeatures, true) : []; // Invoices $invoiceFeatureIds = ['10','24','25','26','27']; $invoiceMenuItems = [ '10' => [ ['label' => trans('internal-collaborations.create-invoice'), 'href' => URL::route('community-invoice-create', ['slug' => 0])], ['label' => trans('internal-collaborations.sent-invoice'), 'href' => URL::route('community-invoices', ['slug' => 0])], ], '24' => [['label' => trans('internal-collaborations.transaction-details'), 'href' => URL::route('my-orders')]], '25' => [['label' => 'Sales Report', 'href' => URL::route('my-sales')]], '26' => [['label' => trans('internal-collaborations.connect-with-account'), 'href' => '#']], '27' => [['label' => trans('internal-collaborations.distribute'), 'href' => '#']], ]; $enabledInvoiceFeatures = []; if ($menus_activated == 'yes') { $enabledInvoiceFeatures = $invoiceFeatureIds; } else { foreach ($invoiceFeatureIds as $featureId) { if (isset($featuresLookup[$featureId])) { $enabledInvoiceFeatures[] = $featureId; } } } $enabledInvoiceLookup = !empty($enabledInvoiceFeatures) ? array_fill_keys($enabledInvoiceFeatures, true) : []; @endphp @if($menus_activated=='yes' || !empty($enabledCampaignFeatures))
  • {{ trans('internal-collaborations.campaign') }}
  • @endif @if($menus_activated=='yes' || !empty($enabledCustomerFeatures))
  • {{ trans('internal-collaborations.customers') }}
  • @endif @if($menus_activated=='yes' || !empty($enabledInvoiceFeatures))
  • {{ trans('internal-collaborations.invoices') }}
  • @endif @php $reportFeatureIds = ['28','29','30','31','7','63','33','34','35','36','37']; $enabledReportFeatures = []; if ($menus_activated == 'yes') { $enabledReportFeatures = $reportFeatureIds; } else { foreach ($reportFeatureIds as $featureId) { if (isset($featuresLookup[$featureId])) { $enabledReportFeatures[] = $featureId; } } } $enabledReportLookup = !empty($enabledReportFeatures) ? array_fill_keys($enabledReportFeatures, true) : []; $reportMenuItems = [ '28' => ['label' => trans('internal-collaborations.calendar'), 'href' => $communityPresenter->url('cmeventscalendar'), 'when' => true], '29' => ['label' => trans('internal-collaborations.events-list'), 'href' => $communityPresenter->url('ownevents'), 'when' => true], '30' => ['label' => trans('internal-collaborations.crowdfunding-list'), 'href' => $communityPresenter->url('allcrowdfunding'), 'when' => true], '33' => ['label' => trans('internal-collaborations.polls'), 'href' => $communityPresenter->url('surveys'), 'when' => true], '34' => ['label' => trans('internal-collaborations.documents'), 'href' => $communityPresenter->url('documentsdashboard'), 'when' => $communityPresenter->canManage()], '35' => ['label' => trans('internal-collaborations.visitor-statistics'), 'href' => $communityPresenter->url('visitorsstat'), 'when' => $community->isOwner()], '36' => ['label' => trans('internal-collaborations.members'), 'href' => $communityPresenter->url('members'), 'when' => $community->isOwner()], '37' => ['label' => trans('internal-collaborations.unverified-members'), 'href' => $communityPresenter->url('unverifiedmembers'), 'when' => $community->isOwner()], ]; @endphp @if($menus_activated=='yes' || !empty($enabledReportFeatures))
  • {{ trans('internal-collaborations.reports') }}
  • @endif @php // Support $supportFeatureIdsForMenuVisibility = ['38','39','40','41','42']; $supportMenuItems = [ '38' => ['label' => trans('internal-collaborations.faqs'), 'href' => '#'], '39' => ['label' => trans('internal-collaborations.tutorials'), 'href' => '#'], '40' => ['label' => trans('internal-collaborations.support-chat'), 'href' => '#'], '41' => ['label' => trans('internal-collaborations.ticket-management'), 'href' => '#'], '44' => ['label' => trans('internal-collaborations.webpages'), 'href' => '#'], ]; $showSupportMenu = false; if ($menus_activated == 'yes') { $showSupportMenu = true; } else { foreach ($supportFeatureIdsForMenuVisibility as $featureId) { if (isset($featuresLookup[$featureId])) { $showSupportMenu = true; break; } } } $enabledSupportLookup = []; if ($menus_activated == 'yes') { $enabledSupportLookup = array_fill_keys(array_keys($supportMenuItems), true); } else { foreach (array_keys($supportMenuItems) as $featureId) { if (isset($featuresLookup[$featureId])) { $enabledSupportLookup[$featureId] = true; } } } // Settings $settingsFeatureIds = ['64','43','44','45','46','32','49','1','50','47','53']; $settingsOwnerMenuItems = [ '64' => ['label' => trans('internal-collaborations.community-members'), 'href' => $communityPresenter->url('invite')], '43' => ['label' => trans('internal-collaborations.webpage-login-with-settings'), 'href' => $communityPresenter->url('pages')], //'44' => ['label' => 'SEO & Social Sharing', 'href' => $communityPresenter->url('socialfeed')], '45' => ['label' => trans('internal-collaborations.organization-information'), 'href' => $communityPresenter->url('pannelsetting')], //'46' => ['label' => 'Bank Details', 'href' => $communityPresenter->url('communitybankdetails')], '32' => ['label' => trans('internal-collaborations.community-marketplace'), 'href' => $communityPresenter->url('emarketplace')], '49' => ['label' => trans('internal-collaborations.admin-privileges'), 'href' => $communityPresenter->url('privilegesettings')], '1' => ['label' => trans('internal-collaborations.corporate-website-design'), 'href' => $communityPresenter->url('homepagecontents')], //'50' => ['label' => 'Language & Translation', 'href' => $communityPresenter->url('activelanguages')], '47' => ['label' => trans('internal-collaborations.subscription-plan'), 'href' => $communityPresenter->url('communitypaymentplans')], '53' => ['label' => trans('internal-collaborations.after-login-view'), 'href' => $communityPresenter->url('mysettings')], ]; $settingsNonOwnerMenuItems = [ '53' => ['label' => trans('internal-collaborations.after-login-view'), 'href' => $communityPresenter->url('mysettings')], ]; $enabledSettingsFeatures = []; if ($menus_activated == 'yes') { $enabledSettingsFeatures = $settingsFeatureIds; } else { foreach ($settingsFeatureIds as $featureId) { if (isset($featuresLookup[$featureId])) { $enabledSettingsFeatures[] = $featureId; } } } $enabledSettingsLookup = !empty($enabledSettingsFeatures) ? array_fill_keys($enabledSettingsFeatures, true) : []; @endphp @if($showSupportMenu)
  • {{ trans('internal-collaborations.support') }}
  • @endif @if($menus_activated=='yes' || !empty($enabledSettingsFeatures) || $community->race_community==1 || $selected_pricing_plan_type=='racing')
  • {{ trans('internal-collaborations.settings-menu') }}
  • @endif @elseif($community->gift_app_community==1 || $selected_pricing_plan_type=='giftapp')
  • {{ trans('internal-collaborations.account') }}
  • {{ trans('internal-collaborations.top-up') }}
  • {{ trans('internal-collaborations.send') }}
  • {{ trans('internal-collaborations.request') }}
  • {{ trans('internal-collaborations.gift-cycle') }}
  • {{ trans('internal-collaborations.bank-details') }}
  • {{ trans('internal-collaborations.cashout-money') }}
  • {{ trans('internal-collaborations.contacts') }}
  • {{ trans('internal-collaborations.invitation-link') }}