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

{{__('All Blog Items')}}

@php $b=0; @endphp @foreach($all_blog as $key => $blog)
@foreach($blog as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Image')}} {{__('Author')}} {{__('Category')}} {{__('Status')}} {{__('Date')}} {{__('Action')}}
{{$data->id}} {{$data->title}} @if(!empty($data->breaking_news === 1)){{__('Breaking News')}}@endif @if(!empty($data->video_url)){{__('Video')}}@endif @php $blog_img = get_attachment_image_by_id($data->image,null,true); @endphp @if (!empty($blog_img))
@endif
{{$data->author}} @if(!empty($data->blog_categories_id)) {{get_blog_category_by_id($data->blog_categories_id)}} @endif @if($data->status == 'draft') {{__('Draft')}} @else {{__('Publish')}} @endif {{date_format($data->created_at,'d M Y')}}
@csrf
@php $b++; @endphp @endforeach
@endsection @section('script') @endsection