@extends('dashboard.layouts.app') @section('page-title', trans('news.caption.index')) @section('page-menu') @lang('news.button.create') @stop @section('breadcrumbs') @stop @section('content')
@if (count($news)) @foreach ($news as $article) @endforeach
@lang('global.legend.id') @lang('global.legend.thumbnail') @lang('global.legend.name') @lang('global.and') @lang('global.legend.slug') @lang('global.legend.attachments') @lang('global.legend.publishedAt')
{{ $article->id }} @if ($article->existsThumbnail()) {{ $article->slug }} @else {{ $article->slug }} @endif {!! $article->translate('name') !!}
{{ $article->slug }}
@if (!$article->attachments->isEmpty()) @else – @endif {{ $article->published_at->format('d/m/Y - H:i') }} @lang('global.button.edit') {!! Form::model($news, [ 'method' => 'DELETE', 'route' => ['dashboard.news.destroy', $article->id], 'class' => 'd-inline', 'onsubmit' => 'confirmDialog("' . trans('news.modal.delete', ['id' => $article->id]) . '", event)' ]) !!} {!! Form::close() !!}
@else
@lang('news.alert.notFound')
@endif
@stop