@extends('blog::layouts.master') @section('title', '| Blogs') @section('content')

Blogs

@if (Auth::user()->hasAnyRole(['ADMIN', 'EDITOR'])) Create New @endif
All Blogs
@if(count($blogs) > 0) @foreach($blogs as $blog) @endforeach @endif
Image Blog Title / Page Internal Name Published At Status Actions
{{ $blog['title'] }} {{ getLanguageTranslation($blog['title']) }} {{ $blog['published_at'] ? date('d M Y H:i:s', strtotime($blog['published_at'])) : '' }} @if (Auth::user()->hasAnyRole(['ADMIN'])) @endif @if (Auth::user()->hasAnyRole(['ADMIN'])) @include ('partials.modals._confirmation', ['id' => $blog['id'], 'confirm_route' => 'blogs.delete', 'message' => 'Are you sure you want to delete post ' . getLanguageTranslation($blog['title']) . '?', 'submitLabel' => 'Delete']) @endif
@endsection @push('scripts') @endpush