feat(cms): implement complete SysSiteCMS content management system
Initial implementation of the HomeSysPanel CMS built with Laravel 13.0. Includes complete admin panel, content management, user authentication, modular architecture for products/services/chatbot, and marketing tools. Key features: - User authentication with email verification and password reset - Role-based access control (Admin/User with granular permissions) - Content management (pages, news, FAQ, downloads, galleries, banners) - Contact management system with subjects and responses - Marketing tools (email campaigns, visitor analytics, social sharing) - Modular architecture (Products, Services, Chatbot modules) - AI Chatbot integration with OpenRouter.ai and LlamaCpp support - Visitor tracking with geolocation - SEO optimization with meta tags and Open Graph - Responsive design with Bootstrap 5 - Dark mode support - Maintenance mode - Feature request system
This commit is contained in:
Executable
+76
@@ -0,0 +1,76 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', 'Notícias' . \App\Models\Setting::get('seo_title_suffix', ' - SysSiteCMS'))
|
||||
@section('meta_description', 'Acompanhe as últimas notícias e novidades.')
|
||||
|
||||
@section('content')
|
||||
<div class="container py-5">
|
||||
<div class="text-center mb-5">
|
||||
<h1 class="display-5 fw-bold text-primary">Notícias</h1>
|
||||
<p class="lead text-muted">Acompanhe as últimas novidades e informações.</p>
|
||||
</div>
|
||||
|
||||
@if($newsList->count() > 0)
|
||||
<div class="row g-4">
|
||||
@foreach($newsList as $item)
|
||||
<div class="col-md-6 col-lg-4">
|
||||
<div class="card h-100 border-0 shadow-sm overflow-hidden">
|
||||
@if($item->featured_image)
|
||||
<a href="{{ route('news.show', $item->slug) }}">
|
||||
<img src="{{ asset('storage/' . $item->featured_image) }}" class="card-img-top" alt="{{ $item->title }}" style="height: 200px; object-fit: cover; transition: transform 0.3s;">
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ route('news.show', $item->slug) }}">
|
||||
<div class="bg-light d-flex align-items-center justify-content-center" style="height: 200px;">
|
||||
<i class="bi bi-newspaper text-muted"></i>
|
||||
</div>
|
||||
</a>
|
||||
@endif
|
||||
<div class="card-body d-flex flex-column">
|
||||
<h5 class="card-title fw-bold">
|
||||
<a href="{{ route('news.show', $item->slug) }}" class="text-dark text-decoration-none">{{ $item->title }}</a>
|
||||
</h5>
|
||||
@if($item->summary)
|
||||
<p class="card-text text-muted flex-grow-1">{{ Str::limit($item->summary, 150) }}</p>
|
||||
@endif
|
||||
<div class="d-flex justify-content-between align-items-center mt-3">
|
||||
@if($item->author)
|
||||
<small class="text-muted"><i class="bi bi-person me-1"></i> {{ $item->author }}</small>
|
||||
@endif
|
||||
@if($item->published_at)
|
||||
<small class="text-muted"><i class="bi bi-calendar me-1"></i> {{ $item->published_at->format('d/m/Y') }}</small>
|
||||
@else
|
||||
<small class="text-muted"><i class="bi bi-calendar me-1"></i> {{ $item->created_at->format('d/m/Y') }}</small>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="mt-5 d-flex justify-content-center">
|
||||
{{ $newsList->links() }}
|
||||
</div>
|
||||
@else
|
||||
<div class="text-center py-5">
|
||||
<i class="bi bi-newspaper text-muted mb-3 d-block"></i>
|
||||
<p class="text-muted fs-5">Nenhuma notícia publicada no momento.</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="text-center mt-5">
|
||||
<a href="{{ route('index') }}" class="btn btn-outline-primary px-5 rounded-pill fw-bold">
|
||||
<i class="bi bi-arrow-left me-2"></i> Voltar ao Início
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('css')
|
||||
<style>
|
||||
.card:hover img {
|
||||
transform: scale(1.03);
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user