@foreach([ ['title' => __('None'), 'value' => 0, 'icon' => '', 'input' => 'empty'],
['title' => __('Country'), 'value' => 1, 'icon' => 'flag', 'input' => 'country'],
['title' => __('Platform'), 'value' => 2, 'icon' => 'devices', 'input' => 'platform'],
['title' => __('Language'), 'value' => 3, 'icon' => 'language', 'input' => 'language'],
['title' => __('Rotation'), 'value' => 4, 'icon' => 'cached', 'input' => 'rotation']
] as $targetButton)
@endforeach
@php
if (old('country')) {
$countryList = old('country');
} elseif($link->country_target) {
$countryList = json_decode(json_encode($link->country_target), true);
} else {
$countryList = [];
}
@endphp
@foreach($countryList as $id => $country)
@endforeach
@can('targeting', ['App\Models\Link'])
@else
@if(paymentProcessors())
@include('icons.lock-open', ['class' => 'width-4 height-4 fill-current'])
@endif
@endcan
@php
if (old('language')) {
$languageList = old('language');
} elseif($link->language_target) {
$languageList = json_decode(json_encode($link->language_target), true);
} else {
$languageList = [];
}
@endphp
@foreach($languageList as $id => $language)
@endforeach
@can('targeting', ['App\Models\Link'])
@else
@if(paymentProcessors())
@include('icons.lock-open', ['class' => 'width-4 height-4 fill-current'])
@endif
@endcan
@php
if (old('rotation')) {
$rotationList = old('rotation');
} elseif($link->rotation_target) {
$rotationList = json_decode(json_encode($link->rotation_target), true);
} else {
$rotationList = [];
}
@endphp
@foreach($rotationList as $id => $rotation)
@endforeach
@can('targeting', ['App\Models\Link'])
@else
@if(paymentProcessors())
@include('icons.lock-open', ['class' => 'width-4 height-4 fill-current'])
@endif
@endcan