@extends('backend.admin-master') @section('site-title') {{__('All Advertisements')}} @endsection @section('style') @endsection @section('content')

{{__('All Advertisements')}}

@foreach($all_advertisements as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Type')}} {{__('Size')}} {{__('Image')}} {{__('Click')}} {{__('Impression')}} {{__('Status')}} {{__('Action')}}
{{$data->id}} {{$data->title}} {{__(str_replace('_',' ',$data->type))}} {{$data->size}} @php $add_img = get_attachment_image_by_id($data->image,null,true); @endphp @if (!empty($add_img))
@endif
{{$data->click}} {{$data->impression}} @php $type = 'warning'; $name = __('Inactive'); if($data->status === 1){ $type = 'primary'; $name = __('Active'); } @endphp {{$name}}
@endsection @section('script') @endsection