@extends('layouts.admin') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), '#'=>__('default.blog-posts') ]]) @endsection @section('search-form')
@endsection @section('pageTitle',__('default.blog-posts')) @section('innerTitle',__('default.blog-posts')) @section('content')
@can('access','add_blog') @lang('default.add-new') @endcan

@foreach($blogposts as $item) @endforeach
#@lang('default.title')@lang('default.published-on') @lang('default.enabled') @lang('default.actions')
{{ $loop->iteration }} {{ $item->title }} {{ \Illuminate\Support\Carbon::parse($item->publish_date)->format('d/M/Y') }} {{ boolToString($item->enabled) }} @if(false)
@endif @can('access','view_blog') @endcan @can('access','edit_blog') @endcan @can('access','delete_blog')
{{ method_field('DELETE') }} {{ csrf_field() }}
@endcan
{!! clean( $blogposts->appends(['search' => Request::get('search')])->render() ) !!}
@endsection