@extends('layouts.admin') {{-- Usa o layout admin --}} {{-- Define o cabeçalho da página --}}

{{ __('Gerenciar Temas') }}

{{-- Botão para Adicionar Novo Tema --}} Adicionar Novo Tema
@section('content')
{{-- Mensagens de sucesso/erro --}} @if (session('success')) @endif @if (session('error')) @endif

Lista de Temas Cadastrados

@forelse ($themes as $theme) @empty @endforelse
ID Preview Nome Slug Status Upload em Ações
{{ $theme->id }} @if($theme->preview_image_path && Storage::disk('public')->exists($theme->preview_image_path)) Preview {{ $theme->name }} {{-- Alternativa: asset('storage/' . $theme->preview_image_path) --}} @else Sem imagem @endif {{ $theme->name }} {{ $theme->slug }} @if($theme->is_active) Ativo @else Inativo @endif {{ $theme->created_at->format('d/m/Y H:i') }} {{-- Link para Ver Detalhes --}} Ver {{-- Link para Editar --}} Editar {{-- Botão/Form para Excluir --}}
@csrf @method('DELETE')
Nenhum tema cadastrado ainda.
{{-- Links de paginação (se usar paginate no controller) --}} {{--
{{ $themes->links() }}
--}}
@endsection