@if($news->count() === 0)
no news items
@endif @foreach($news as $item)

{!! $item->subject !!}

{!! $item->user->name !!} - {!! show_datetime($item->created_at) !!}

{!! $item->body !!}
{!! Form::open(['route' => 'admin.dashboard.news', 'method' => 'delete', 'class' => 'pjax_news_form', ]) !!} {!! Form::hidden('news_id', $item->id) !!} {!! Form::button('delete', ['type' => 'submit', 'class' => ' btn btn-danger btn-xs text-small', 'onclick' => "return confirm('Are you sure?')" ]) !!} {!! Form::close() !!}

@endforeach

Add News

{!! Form::open(['route' => 'admin.dashboard.news', 'method' => 'post', 'class' => 'pjax_news_form', ]) !!}
{!! Form::label('subject', 'Subject:') !!} {!! Form::text('subject', '', ['class' => 'form-control']) !!}
{!! Form::label('body', 'Body:') !!} {!! Form::textarea('body', '', ['class' => 'form-control']) !!}
{!! Form::button(' add', ['type' => 'submit', 'class' => 'btn btn-success btn-s']) !!} {!! Form::close() !!}