@extends('admin.layout') @section('title', 'Popups') @section('content')

Popups

Manage promotional popups for the app and website

Add Popup
@forelse($popups as $popup)
@if($popup->image) @else
@endif {{-- Platform badges --}}
@if($popup->show_in_app) APP @endif @if($popup->show_on_web) WEB @endif
{{-- Trigger badge --}}
{{ strtoupper(str_replace('_', ' ', $popup->display_trigger)) }}

{{ $popup->getTranslation('title', 'en') }}

{{ $popup->getTranslation('title', 'ar') }}

@if($popup->getTranslation('body', 'en'))

{{ Str::limit(strip_tags($popup->getTranslation('body', 'en')), 80) }}

@endif {{-- Schedule info --}} @if($popup->isScheduled())
@if($popup->starts_at) From {{ $popup->starts_at->format('M d') }} @endif @if($popup->expires_at) — {{ $popup->expires_at->format('M d, Y') }} @endif @if($popup->isExpired()) Expired @endif
@endif {{-- Stats --}}
{{ number_format($popup->views_count) }} {{ number_format($popup->clicks_count) }} @if($popup->display_frequency > 0) Every {{ $popup->display_frequency }}h @endif
@if($popup->is_active && !$popup->isExpired()) {{ __('admin.active') }} @elseif($popup->isExpired()) Expired @else {{ __('admin.inactive') }} @endif @if($popup->link_type) {{ ucfirst($popup->link_type) }} @endif
@csrf @method('DELETE')
@empty

No popups found. Create your first popup to engage users.

@endforelse
{{ $popups->links() }}
@endsection ob_start();