@extends('backend.admin-master')
@section('site-title')
{{__('All Advertisements')}}
@endsection
@section('style')
|
{{__('ID')}} | {{__('Title')}} | {{__('Type')}} | {{__('Size')}} | {{__('Image')}} | {{__('Click')}} | {{__('Impression')}} | {{__('Status')}} | {{__('Action')}} | @foreach($all_advertisements as $data)
---|---|---|---|---|---|---|---|---|---|
|
{{$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}} |
|