@extends("admin.layouts.sellermastersoyuz") @section('title', __('My Ads')) @section('body') @component('seller.components.breadcumb', ['secondactive' => 'active']) @slot('heading') {{ __('My Short Ads') }} @endslot @slot('menu1') {{ __('Ads') }} @endslot @slot('button')
{{ __('Request New Ad') }}
@endslot @endcomponent
{{ __('My Ad Requests') }}
@foreach($ads as $ad) @endforeach
{{ __('ID') }} {{ __('Thumbnail') }} {{ __('Title') }} {{ __('Duration') }} {{ __('Amount') }} {{ __('Payment') }} {{ __('Admin Status') }} {{ __('Clicks') }} {{ __('Action') }}
{{ $ad->id }} @if($ad->thumbnail && file_exists(public_path('images/shorts/' . $ad->thumbnail))) @else — @endif {{ $ad->title }}
{{ \Illuminate\Support\Str::limit($ad->redirect_url, 50) }} @if($ad->ad_rejection_reason)
{{ __('Rejected:') }} {{ $ad->ad_rejection_reason }} @endif
{{ (int) $ad->ad_duration_days }} {{ __('days') }} {{ $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) }} @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 }} @if($ad->ad_payment_status == 'pending') {{ __('Pay Now') }} @endif @if(!($ad->ad_admin_status == 'approved' && $ad->ad_payment_status == 'paid'))
@csrf @method('DELETE')
@endif
@endsection