@extends('layouts.admin.master') @section('content')
{{ __('content.blogs') }} {{ __('content.view_draft') }}
draft image
+ {{ __('content.add_blog') }}
@if (count($blogs) > 0)
@if ($demo_mode == "on") @include('admin.demo_mode.demo-mode') @else
@method('DELETE') @csrf @endif
@php $desc = count($blogs); $asc=0; @endphp @foreach ($blogs as $blog) @endforeach
# {{ __('content.image') }} {{ __('content.title') }} {{ __('content.category') }} {{ __('content.post_date') }} {{ __('content.order') }} {{ __('content.status') }} {{ __('content.action') }}
{{ $asc++ }}{{ $desc-- }} @if (!empty($blog->section_image)) blog image @else no image @endif {{ $blog->title }} @if (isset($blog->category->category_name)) {{ $blog->category->category_name }} @else {{ $blog->category_name }} @endif {{ Carbon\Carbon::parse($blog->created_at)->format('d.m.Y') }} {{ $blog->order }} @if ($blog->status == "published") {{ __('content.published') }} @else {{ __('content.draft') }} @endif
@else {{ __('content.not_yet_created') }} @endif
@endsection