@extends('dashboard.layouts.main') @section('title', getSiteName() . ' - Dashboard - News') @section('content')
| {{ __('Thumb') }} | {{ __('Title') }} | {{ __('View') }} | {{ __('Category') }} | {{ __('Date Publish') }} | {{ __('Status') }} | @can('add articles')@endcan | |
|---|---|---|---|---|---|---|---|
@if(!$article->preview_type)
@if($article->image && exitstFile('storage/app/public/uploads/news/' . $article->id . '/', $article->image))
@endif
|
{{ $article->getInfo()->title }} | {{ __('Open') }} |
@foreach($article->newsCategories as $category)
{{ $category->getInfo()->title }}@if (!$loop->last), @endif
@endforeach |
@if($article->date_publish)
{{ Carbon\Carbon::parse($article->date_publish)->format('d.m.Y') }}
{{ Carbon\Carbon::parse($article->date_publish)->format('H:i') }}
@endif
|
{{ $article->views }} | {{ $article->status ? __('Active') : __('Inactive') }} | @can('add articles')@endcan |
{{ __('News not found.') }}
@endif