@if(($role_id == 1) || in_array(60, $permissions)) @endif @if($formMode)
{{ $updateMode ? 'Edit Record' : 'Add New Record' }}
@error('form.title') {{ $message }} @enderror
@error('form.redirect_url') {{ $message }} @enderror
@error('form.advertise_type') {{ $message }} @enderror
@error('form.position') {{ $message }} @enderror
@error('form.start_date') {{ $message }} @enderror
@error('form.end_date') {{ $message }} @enderror
@error('form.is_image_video') {{ $message }} @enderror
@if($form['is_image_video'] == 0)
@if($image) @endif
@endif @if($form['is_image_video'] == 1)
@if($image) @endif
@endif @if($form['is_image_video'] == 2)
@endif
@foreach($advertis_image as $img)
@endforeach
@error('form.image') {{ $message }} @enderror
@error('form.advertis_page') {{ $message }} @enderror
@foreach ($geo as $page)
@endforeach
@foreach ($screens as $scr) @endforeach
@foreach ($regions as $reg)
@endforeach
@foreach ($countries as $ct)
@endforeach
@endif @if($viewMode)

{{ $form['title'] ?? '-' }}

{{ $form['redirect_url'] ?? '-' }}

{{ $positioncheck[$form['position']] ?? '-' }}

{{ $form['id'] ?? '-' }}

{{ $form['is_active'] ?? '-' }}

{{ $form['country_id'] ?? '-' }}

{{ $form['created_at'] ?? '-' }}

{{ $form['updated_at'] ?? '-' }}

{{ $form['start_date'] ?? '-' }}

{{ $form['end_date'] ?? '-' }}

@endif
@foreach($advertisByCountries as $advertisByCountry) {{-- ID --}} {{-- IMAGE / VIDEO / SCRIPT --}} {{-- TITLE --}} {{-- ADVERTISE TYPE --}} {{-- POSITION --}} {{-- IS SELLOUT BADGE --}} {{-- DATES --}} {{-- ACTION BUTTONS --}} @endforeach @if ($advertisByCountries->count() == 0) @endif
Sno. Image Title Advertise Type Position Status Start Date End Date Action
{{ $advertisByCountry['id'] }} @if($advertisByCountry['is_image_video'] == 2) {!! $advertisByCountry['advertise_script'] !!} @elseif($advertisByCountry['is_image_video'] == 1) @else @endif {{ \Illuminate\Support\Str::limit($advertisByCountry['title'], 30, '...') }} {{ $advertisByCountry['advertise_type'] ?? 'N/A' }}{{ $positioncheck[$advertisByCountry['position']] ?? 'Other Banners' }} @php $statusLabels = [ '' => 'Status', '0' => 'Availability', '1' => 'Live', '2' => 'Taken', '3' => 'Trial', '4' => 'Referral/Affiliate', '5' => 'Free', '6' => 'Paid' ]; @endphp {{ $statusLabels[$advertisByCountry['is_sellout']] ?? 'Unknown' }} {{ $advertisByCountry['start_date'] }} {{ $advertisByCountry['end_date'] }}
@if(($role_id == 1) || in_array(61, $permissions)) @endif @if(($role_id == 1) || in_array(62, $permissions)) @endif
No data found...
{{ $advertisByCountries->links() }}
@push('scripts') @endpush