{{-- "Duplikat": the create form filled from this campaign's stored request (App\Services\CampaignDuplicate). --}} @php $duplicateLocalId = (string) (($row['local_id'] ?? '') ?: data_get($row, 'raw.localId', '')); // The SMS lists also show MMS campaigns; those open the MMS form. $duplicateChannel = match (strtoupper((string) ($row['channel_type'] ?? ''))) { 'SMS' => 'sms', 'MMS' => 'mms', 'WABA', 'WA', 'WA-BUSINESS', 'WHATSAPP' => 'wa-business', default => $channel, }; @endphp @if ($duplicateLocalId !== '' && ($canCreateCampaign ?? true) && ! \App\Support\CampaignQuota::current()->allowsChannel($duplicateChannel, $menu)) {{-- No quota left for this service: ads are paid only with quota. --}} Duplikat @elseif ($duplicateLocalId !== '' && ($canCreateCampaign ?? true)) Duplikat @else - @endif