@extends('admin.layouts.master-soyuz') @section('title', __('Short Ads |')) @section('body') @component('admin.component.breadcumb', ['thirdactive' => 'active']) @slot('heading') {{ __('Short Ads') }} @endslot @slot('menu1') {{ __('Products') }} @endslot @slot('menu2') {{ __('Short Ads') }} @endslot @slot('button')
{{ __('Create Ad') }} {{ __('Back to Shorts') }}
@endslot @endcomponent
{{ __('Seller Ad Requests') }}
@foreach($ads as $key => $ad) @endforeach
{{ __('ID') }} {{ __('Thumbnail') }} {{ __('Title / URL') }} {{ __('Seller Name') }} {{ __('Duration / Dates') }} {{ __('Amount') }} {{ __('Payment') }} {{ __('Admin Status') }} {{ __('Clicks') }} {{ __('Action') }}
{{ $ad->id }} @php $thumbSrc = null; if ($ad->thumbnail) { if (preg_match('#^https?://#i', $ad->thumbnail)) { $thumbSrc = $ad->thumbnail; } elseif (file_exists(public_path('images/shorts/' . $ad->thumbnail))) { $thumbSrc = asset('images/shorts/' . $ad->thumbnail); } } @endphp @if($thumbSrc) @else {{ __('No thumbnail') }} @endif

{{ $ad->title ?: '—' }}

@if($ad->redirect_url) {{ \Illuminate\Support\Str::limit($ad->redirect_url, 60) }}
@endif @if($ad->video) @php $videoSrc = preg_match('#^https?://#i', $ad->video) ? $ad->video : asset('videos/shorts/' . $ad->video); @endphp {{ __('Preview video') }} @endif @if($ad->ad_rejection_reason)
{{ __('Rejected:') }} {{ $ad->ad_rejection_reason }} @endif
{{ $ad->user->name ?? '—' }} {{ (int) $ad->ad_duration_days }} {{ __('days') }}
@if($ad->ad_start_date) {{ __('From:') }} {{ $ad->ad_start_date->format('d M Y') }}
@endif @if($ad->ad_end_date) {{ __('To:') }} {{ $ad->ad_end_date->format('d M Y') }}@endif
{{ $ad->ad_currency ?: 'INR' }} {{ number_format((float) $ad->ad_amount, 2) }} @php $payColors = [ 'pending' => 'btn-warning-rgba', 'paid' => 'btn-success-rgba', 'refunded' => 'btn-info-rgba', 'failed' => 'btn-danger-rgba', ]; @endphp {{ ucfirst($ad->ad_payment_status) }} @if($ad->ad_txn_id)
{{ $ad->ad_txn_id }} @endif
@php $stColors = [ 'pending' => 'btn-warning-rgba', 'approved' => 'btn-success-rgba', 'rejected' => 'btn-danger-rgba', 'expired' => 'btn-secondary-rgba', ]; @endphp {{ ucfirst($ad->ad_admin_status) }} {{ (int) $ad->ad_click_count }}
@endsection