@extends('admin.layout.master') @section('content') @section('ads', 'active') @section('title', 'Ads')
All Ads

@if (session('success'))
{{ session('success') }}
@endif
Filter by Category
@foreach ($categories as $category)
@endforeach
Filter by City
@foreach ($cities as $city)
@endforeach
Filter by Status





@foreach ($ads as $ad) @endforeach
Date & Time User Name Category Ad Title City Amount View Status Action
{{ $ad->created_at }} @if (!empty($ad->client->full_name)) {{ $ad->client->full_name }} @else Admin @endif {{ $ad->type }} {{ $ad->ad_title }} {{ $ad->city }} {{ $ad->price }} View @if ($ad->is_approved == '1') Approved @elseif($ad->is_approved == '2') Reject @elseif($ad->is_approved == '3') Offer @else Pending @endif @if($ad->is_approved == '3') @if(!empty($ad->offer) && $ad->offer->offer_status == 'Accepted') Offer Accepted @else Offer Sent @endif @else @endif {{-- --}} @if($ad->comment) @endif
@endsection @section('script') @endsection