@extends('admin.layouts.master') @section('title', 'All Blog - Admin') @section('maincontent') @component('components.breadcumb',['fourthactive' => 'active']) @slot('heading') {{ __('All Blog') }} @endslot @slot('menu1') {{ __('Blog') }} @endslot @slot('button')
@can('blogs.delete') @endcan @can('blogs.create') {{ __('Add Blog') }} @endcan
@endslot @endcomponent
@if ($errors->any()) @endif
{{ __('Blog') }}
@if(Auth::user()->role == 'admin') @endif @foreach($items as $item) @if(Auth::user()->role == 'admin') @endif @endforeach
# {{ __('Image') }} {{ __('User') }} {{ __('Heading') }} {{ __('Detail') }} {{ __('Text') }}{{ __('Approved') }} {{ __('Status') }}{{ __('Action') }}
1 @if($image = @file_get_contents('../public/images/blog/'.$item->image)) @endif {{$item->user->fname}} {{$item->heading}} {{ preg_replace("/\r\n|\r|\n/",'',strip_tags(html_entity_decode(str_limit($item->detail, 60)))) }} {{$item->text}}


@endsection @section('script') @endsection