@foreach (['location-based-area' => ['Location Based Area', 'LBA', 'lba'], 'broadcast' => ['Broadcast', 'BC', 'broadcast'], 'targeted' => ['Targeted', 'TG', 'targeted']] as $categoryMenu => [$categoryName, $categoryIcon, $categoryPriceSuffix])
@if (\App\Support\CampaignQuota::current()->allowsChannel($categoryChannel, $categoryMenu))
{{ $categoryIcon }}
{{ $categoryName }}
@php $categoryQuota = \App\Support\CampaignQuota::current()->labelFor($categoryChannel, $categoryMenu); @endphp
@if ($categoryQuota !== null)
{{-- Ads are paid with quota: show what is left instead of the price. --}}
{{ $categoryQuota }}
@else
{{ $formatPortalCampaignPrice(data_get($campaignPrices ?? [], $categoryPrefix.'_'.$categoryPriceSuffix)) }}
@endif
@else
{{-- No quota left for this service. --}}
{{ $categoryIcon }}
{{ $categoryName }}
Kuota habis
@endif
@endforeach