@extends('layouts.dashboard') @section('page-title', 'Blogs') @section('page-subtitle', 'Gerencie os blogs e publicações da plataforma') @section('content')
{{-- Toolbar --}}

Todos os blogs

{{-- Table --}}
@forelse ($blogs as $b) @php $b = (object) $b; @endphp {{-- Título --}} {{-- Categoría --}} {{-- País --}} {{-- Link --}} {{-- Fecha --}} {{-- Acciones --}} @empty @endforelse
Título Categoria País Link Data

{{ $b->title ?? '—' }}

{{ $b->category_name ?? '—' }} {{ $b->country_name ?? '—' }} @if (!empty($b->link)) Ver link @else @endif {{ isset($b->created_at) ? \Carbon\Carbon::parse($b->created_at)->format('d M Y') : '—' }}
{{-- Eliminar (status = -1) com confirm --}}
@csrf

Nenhum blog encontrado

Tente com outro termo de busca

{{-- Paginación --}} @if (($pagination['last_page'] ?? 1) > 1)

Mostrando {{ $pagination['from'] }}–{{ $pagination['to'] }} de {{ $pagination['total'] }} blogs

@if ($pagination['current_page'] > 1) Anterior @else Anterior @endif @for ($p = 1; $p <= $pagination['last_page']; $p++) {{ $p }} @endfor @if ($pagination['current_page'] < $pagination['last_page']) Próximo @else Próximo @endif
@endif
@endsection