@extends('backend.layouts.app-backend') @section('content')

Flyers Ad List

@include('layouts.message')
Flyers Ad List
@if(isset($ads) && count($ads)>0) @foreach($ads as $ad) @endforeach @else @endif
Flyers Title Member Name Image Flyers post start/ end date Status Action
{{$ad->title ?? ''}} @if( !isset($ad->post_Status) || $ad->post_Status == 1 ) new @endif @if( $ad->post_Status == 2 ) renew @endif @if( $ad->post_Status == 3 ) upgrade @endif {{$ad->user->first_name ?? ''}} {{$ad->user->last_name ?? ''}} @php $imagePath = public_path( 'flyers/'.$ad->featured_image ); @endphp @if(isset($ad->featured_image) && file_exists( $imagePath ) ) @else @endif {{date('Y-m-d',strtotime($ad->approved_date))}}/{{date('Y-m-d',strtotime($ad->expiry_date))}} @if( $ad->status == 0 ) Pending @endif @if( $ad->status == 1 ) Published/Approved @endif @if( $ad->status == 2 ) Reject @endif @if( $ad->status == 3 ) Review @endif @if( $ad->status == 4 ) Un publised @endif
No Flyers Ad!
{!! $ads->links() !!}
@endsection @section('footer-scripts') @endsection