@extends('admin.layouts.app') @section('content')
{{-- Failed --}} @if (Session::has("failed")) @endif {{-- Success --}} @if(Session::has("success")) @endif
{{-- Blogs --}}
{{-- Blogs --}} @foreach ($blogs as $blog) @php // Tags separated $tags = explode(',', $blog->tags); $tags = collect($tags)->take(2)->all(); @endphp @endforeach
{{ __('S.No') }} {{ __('Date') }} {{ __('Category') }} {{ __('Tags') }} {{ __('Title') }} {{ __('Short description') }} {{ __('Status') }} {{ __('Actions') }}
{{ $loop->iteration }} {{ formatDateForUser($blog->created_at) }} {{ __($blog->blogCategory->blog_category_title) }} @foreach ($tags as $tag) {{ __($tag) }}
@endforeach
{{ __($blog->heading) }} {{ __(mb_strimwidth($blog->short_description, 0, 99, '...')) }} @if ($blog->status == 0) {{ __('Unpublished') }} @else {{ __('Published') }} @endif
{{-- Footer --}} @include('admin.includes.footer')
{{-- Action modal --}} {{-- Custom JS --}} @section('custom-js')