@extends('admin::layouts.master') @section('content-header') @if( ! isOnPages())

All Articles ({{ $articles->getTotal() }}) · {{ link_to_route('admin.articles.create', 'Add New') }}

@else

All Pages ({{ $articles->getTotal() }}) · {{ link_to_route('admin.pages.create', 'Add New') }}

@endif @stop @section('content') @if( ! isOnPages()) @endif @foreach ($articles as $article) @if( ! isOnPages()) @endif @endforeach
No Title AuthorCategoryCreated At Action
{{ $no }} {{ $article->title }} {{ $article->user->name }}{{ $article->category ? $article->category->name : null }}{{ $article->created_at }} @if(isOnPages()) Edit · @include('admin::partials.modal', ['data' => $article, 'name' => 'pages']) @else Edit · @include('admin::partials.modal', ['data' => $article, 'name' => 'articles']) @endif
{{ pagination_links($articles) }}
@stop