@extends('backend.global.layout') @section('content') @include('backend.global.notifications')
@include('backend.global.header-card', [ 'button_label' => 'Adicionar Artigo', 'button_url' => route('manager.blog.create'), ])
@if (isset($blog) && count($blog) > 0) {{ csrf_field() }} @foreach ($blog as $n) @if ($n->blog_category_id == null) @else @endif @include('backend.global.table-actions', [ 'edit_route' => route('manager.blog.edit', $n->id), 'show_route' => route('manager.blog.show', $n->id), 'delete_route' => route('manager.blog.delete', ['id' => $n->id]), ]) @endforeach
Titulo Categoria Tags Estado ACÇÕES
{{ $n->title }}sem categoria associada{{ $n->category->name }} @if (empty($n->sub_category_ids)) sem subcategorias associadas @else @foreach ($n->subCategories() as $subCategory) {{ $subCategory['name'] }}@if (!$loop->last) , @endif @endforeach @endif {{ $n->status ? 'Activo' : 'Inativo' }}
@else @include('backend.snippets.norecords') @endif
@endsection