@extends('layouts.admin-page') @section('search-form',url('/admin/blog-posts')) @section('pageTitle',__('site.blog-posts')) @section('page-title',__('site.blog-posts')) @section('page-content')
@can('access','create_blog') @lang('site.add-new') @endcan

@foreach($blogposts as $item) @endforeach
#@lang('site.title')@lang('site.published-on') @lang('site.enabled') @lang('site.actions')
{{ $loop->iteration }} {{ $item->title }} {{ \Illuminate\Support\Carbon::parse($item->publish_date)->format('d/M/Y') }} {{ boolToString($item->status) }} @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