@extends('layouts.app') @section('title') User Manage Ads @endsection @section('styles') @endsection @section('content')

Manage and View Your Ads

My All Ads

@if ($ads->count() > 0) @foreach ($ads as $ad)
@if ($ad->images->count() > 0) Ad Image @else Default Image @endif

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

{{ config('app.currency_symbol') }} {{ number_format($ad->price, 2) }}

Brand: {{ $ad->brand->name ?? '' }}

Posted: {{ $ad->created_at }}

Status: {{ $ad->status }}


@endforeach @else

No any ads available.

@endif {{ $ads->links('pagination::bootstrap-5') }}

My Active Ads

@if ($activeAds->count() > 0) @foreach ($activeAds as $ad)
@if ($ad->images->count() > 0) Ad Image @else Default Image @endif

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

{{ config('app.currency_symbol') }} {{ number_format($ad->price, 2) }}

Brand: {{ $ad->brand->name ?? '' }}

Posted: {{ $ad->created_at }}


@endforeach @else

No active ads available.

@endif {{ $activeAds->links('pagination::bootstrap-5') }}

Inactive Ads

@if ($inactiveAds->count() > 0) @foreach ($inactiveAds as $ad)
@if ($ad->images->count() > 0) Ad Image @else Default Image @endif

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

{{ config('app.currency_symbol') }} {{ number_format($ad->price, 2) }}

Brand: {{ $ad->brand->name ?? '' }}

Posted: {{ $ad->created_at }}


@endforeach @else

No inactive ads available.

@endif {{ $inactiveAds->links('pagination::bootstrap-5') }}

Pendigs Ads

@if ($pendingAds->count() > 0) @foreach ($pendingAds as $ad)
@if ($ad->images->count() > 0) Ad Image @else Default Image @endif

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

{{ config('app.currency_symbol') }} {{ number_format($ad->price, 2) }}

Brand: {{ $ad->brand->name ?? '' }}

Posted: {{ $ad->created_at }}


@endforeach @else

No pending ads available.

@endif {{ $pendingAds->links('pagination::bootstrap-5') }}

Moderated Ads

@if ($moderateAds->count() > 0) @foreach ($moderateAds as $ad)
@if ($ad->images->count() > 0) Ad Image @else Default Image @endif {{-- Ad Image --}}

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

{{ config('app.currency_symbol') }} {{ number_format($ad->price, 2) }}

Brand: {{ $ad->brand->name ?? '' }}

Posted: {{ $ad->created_at }}


@endforeach @else

No moderated ads available.

@endif {{ $moderateAds->links('pagination::bootstrap-5') }}
{{--
Heavy Discount on Packages
View Packages
--}}
@endsection @section('scripts') @endsection