@extends('cms.application') @section('content')
@if (empty($categories))
@else
New Document
{!! Form::open(['route' => 'cms.publications.index', 'files' => true]) !!} @include('cms.publications._form', ['submitButton' => "Save"]) {!! Form::close() !!}
List Of Documents
@if($publications->count() == 0)
@else @foreach($publications as $key => $publication) @php $category_name = App\Models\PublicationCategory::where('id','=',$publication->category_id)->first(); @endphp @endforeach
Name Category Status Published Date Options
@php echo wordwrap($publication->title,25,'
') @endphp
@php echo (! empty($category_name))? $category_name->title : 'null' @endphp {{ status($publication->active) }} {{ $publication->published_date }} Edit {!! link_to_route('cms.publications.destroy', "Delete", array($publication->id), array('data-method' => 'delete', 'data-confirm' => 'Are you Sure' ,'class' => 'label theme-b bg-danger text-white f-12')) !!}
{{-- {!! $publications->render() !!} --}}
@endif
@endif
@stop