@extends('backend.admin-master') @section('style') @endsection @section('site-title') {{__('Blog Page')}} @endsection @section('content')
@include('backend/partials/message') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{$error}}
  • @endforeach
@endif

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

@php $b=0; @endphp @foreach($all_blog as $key => $blog)
@foreach($blog as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Image')}} {{__('Posted By')}} {{__('Category')}} {{__('Status')}} {{__('Date')}} {{__('Action')}}
{{$data->id}} {{$data->title}} @php $blog_img = get_attachment_image_by_id($data->image,null,true); @endphp @if (!empty($blog_img))
@endif
{{$data->user->name}} {{get_blog_category_by_id($data->id)}} @if($data->status == 'publish') {{__('Publish')}} @else {{__('Draft')}} @endif {{date_format($data->created_at,'d m Y')}}
@csrf
@php $b++; @endphp @endforeach
@include('backend.partials.media-upload.media-upload-markup') @endsection @section('script') @include('backend.partials.media-upload.media-js') @endsection