@extends('layouts.admin-page') @section('search-form',url('/admin/articles')) @section('pageTitle',__('site.articles')) @section('page-title') {{ __('site.manage-articles') }} ({{ $articles->count() }}) @if(Request::get('search')) : {{ Request::get('search') }} @endif @endsection @section('page-content')
@can('access','create_article') @lang('site.add-new') @endcan

@foreach($articles as $item) @endforeach
#@lang('site.title')@lang('site.slug') @lang('site.status') @lang('site.actions')
{{ $loop->iteration + ( (Request::get('page',1)-1) *$perPage) }} {{ $item->title }}{{ $item->slug }} {{ $item->status==1? __('site.enabled'):__('site.disabled') }} @can('access','view_article') @endcan @can('access','edit_article') @endcan @can('access','delete_article')
{{ method_field('DELETE') }} {{ csrf_field() }}
@endcan
{!! clean( $articles->appends(['search' => Request::get('search')])->render() ) !!}
@endsection