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
188 lines
9.6 KiB
PHP
Executable File
188 lines
9.6 KiB
PHP
Executable File
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use App\Models\Page;
|
|
|
|
class PageSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$pages = [
|
|
[
|
|
'slug' => 'index',
|
|
'title' => 'Início',
|
|
'meta_description' => 'Bem-vindo à Syspanel - Tecnologia com Confiança.',
|
|
'content' => '
|
|
<section class="text-center mb-5">
|
|
<h1 class="display-3 fw-bold mb-4 text-primary">Tecnologia com Confiança</h1>
|
|
<p class="lead mb-5 fs-4 text-muted">Manutenção especializada de computadores, notebooks e venda de acessórios com as melhores marcas.</p>
|
|
<div class="d-grid gap-2 d-md-flex justify-content-md-center">
|
|
<a href="/servicos" class="btn btn-primary btn-lg px-5 py-3 me-md-2 fw-bold rounded-pill">Nossos Serviços</a>
|
|
<a href="/produtos" class="btn btn-outline-primary btn-lg px-5 py-3 rounded-pill">Ver Produtos</a>
|
|
</div>
|
|
</section>
|
|
<div class="row g-4 text-center mt-5">
|
|
<div class="col-md-4">
|
|
<div class="p-4 border rounded shadow-sm h-100 bg-white">
|
|
<i class="bi bi-tools fs-1 text-primary mb-3"></i>
|
|
<h3 class="h4 mb-3">Manutenção</h3>
|
|
<p class="text-muted">Especialistas em notebooks e desktops de todas as marcas.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="p-4 border rounded shadow-sm h-100 bg-white">
|
|
<i class="bi bi-cart-check fs-1 text-primary mb-3"></i>
|
|
<h3 class="h4 mb-3">Vendas</h3>
|
|
<p class="text-muted">Notebooks novos e seminovos revisados com garantia.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="p-4 border rounded shadow-sm h-100 bg-white">
|
|
<i class="bi bi-shield-check fs-1 text-primary mb-3"></i>
|
|
<h3 class="h4 mb-3">Confiança</h3>
|
|
<p class="text-muted">Transparência total em orçamentos e peças originais.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
',
|
|
],
|
|
[
|
|
'slug' => 'about',
|
|
'title' => 'Sobre Nós',
|
|
'meta_description' => 'Conheça a história e os valores da Syspanel.',
|
|
'content' => '
|
|
<div class="row align-items-center g-5">
|
|
<div class="col-lg-6">
|
|
<img src="https://images.unsplash.com/photo-1597733336794-12d05021d510?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80" alt="Equipe" class="img-fluid rounded shadow-lg">
|
|
</div>
|
|
<div class="col-lg-6">
|
|
<h2 class="display-5 fw-bold mb-4">Syspanel: Sua parceira em tecnologia</h2>
|
|
<p class="lead mb-4 text-muted">Há mais de 10 anos no mercado, somos referência em soluções de informática.</p>
|
|
<p>Nascemos da paixão pela tecnologia e da necessidade de oferecer um serviço de manutenção transparente e qualificado.</p>
|
|
</div>
|
|
</div>
|
|
',
|
|
],
|
|
[
|
|
'slug' => 'produtos',
|
|
'title' => 'Produtos',
|
|
'meta_description' => 'Confira nossa linha de produtos e acessórios.',
|
|
'content' => '
|
|
<h2 class="display-4 fw-bold text-center mb-5 text-primary">Produtos em Destaque</h2>
|
|
<div class="row g-4">
|
|
<div class="col-md-4">
|
|
<div class="card h-100 shadow-sm border-0 bg-white text-center p-3">
|
|
<h5 class="fw-bold">Notebooks Novos</h5>
|
|
<p class="text-muted">As melhores marcas do mercado.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card h-100 shadow-sm border-0 bg-white text-center p-3">
|
|
<h5 class="fw-bold">Acessórios</h5>
|
|
<p class="text-muted">Periféricos de alta qualidade.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card h-100 shadow-sm border-0 bg-white text-center p-3">
|
|
<h5 class="fw-bold">Peças</h5>
|
|
<p class="text-muted">Upgrades e reposição.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
',
|
|
],
|
|
[
|
|
'slug' => 'servicos',
|
|
'title' => 'Serviços',
|
|
'meta_description' => 'Conheça nossos serviços de manutenção e consultoria.',
|
|
'content' => '
|
|
<h2 class="display-4 fw-bold text-center mb-5">O que podemos fazer por você?</h2>
|
|
<div class="row g-4">
|
|
<div class="col-md-6">
|
|
<div class="p-4 border rounded bg-white">
|
|
<h4 class="text-primary fw-bold">Manutenção de Notebooks</h4>
|
|
<p>Troca de telas, baterias e reparos em placa-mãe.</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="p-4 border rounded bg-white">
|
|
<h4 class="text-primary fw-bold">Computadores e Redes</h4>
|
|
<p>Upgrade de hardware e configuração de redes Wi-Fi.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
',
|
|
],
|
|
[
|
|
'slug' => 'assistentes-digitais-com-ia',
|
|
'title' => 'Assistentes Digitais com IA',
|
|
'meta_description' => 'Descubra como os assistentes digitais com IA podem transformar sua empresa.',
|
|
'content' => 'Conteúdo dinâmico em assistentes-digitais-ia.blade.php',
|
|
],
|
|
[
|
|
'slug' => 'linux-servers',
|
|
'title' => 'Servidores Linux',
|
|
'meta_description' => 'Implantação de servidores Linux robustos, seguros e de alta performance para sua empresa.',
|
|
'content' => 'Conteúdo dinâmico em servidores-linux.blade.php',
|
|
],
|
|
[
|
|
'slug' => 'erp',
|
|
'title' => 'ERP Syspanel',
|
|
'meta_description' => 'Descubra como o ERP Syspanel pode transformar a gestão da sua empresa com módulos personalizados e inteligência artificial.',
|
|
'content' => 'Conteúdo dinâmico em erp.blade.php',
|
|
],
|
|
[
|
|
'slug' => 'fluxo-de-caixa-pro',
|
|
'title' => 'Fluxo de Caixa Pro',
|
|
'meta_description' => 'Domine as finanças da sua empresa com o Fluxo de Caixa Pro. Controle total, DRE automático, IA financeira e acesso de qualquer lugar.',
|
|
'content' => 'Conteúdo dinâmico em fluxo-de-caixa-pro.blade.php',
|
|
],
|
|
[
|
|
'slug' => 'downloads',
|
|
'title' => 'Downloads',
|
|
'meta_description' => 'Baixe drivers e utilitários úteis.',
|
|
'content' => '
|
|
<h2 class="display-4 fw-bold text-center mb-5 text-primary">Downloads Recomendados</h2>
|
|
<div class="list-group">
|
|
<a href="https://anydesk.com" target="_blank" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
|
AnyDesk Support
|
|
<span class="badge bg-primary rounded-pill">Baixar</span>
|
|
</a>
|
|
<a href="https://cpuid.com" target="_blank" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
|
|
CPU-Z (Hardware)
|
|
<span class="badge bg-success rounded-pill">Acessar</span>
|
|
</a>
|
|
</div>
|
|
',
|
|
],
|
|
[
|
|
'slug' => 'contato',
|
|
'title' => 'Contato',
|
|
'meta_description' => 'Fale conosco para orçamentos e suporte técnico.',
|
|
'content' => null,
|
|
],
|
|
[
|
|
'slug' => 'faq',
|
|
'title' => 'FAQ',
|
|
'meta_description' => 'Perguntas frequentes sobre nossos serviços.',
|
|
'content' => null,
|
|
],
|
|
[
|
|
'slug' => 'politica-privacidade',
|
|
'title' => 'Política de Privacidade',
|
|
'meta_description' => 'Conheça nossos termos de uso e política de privacidade em conformidade com a LGPD.',
|
|
'content' => 'Conteúdo dinâmico em politica-privacidade.blade.php',
|
|
],
|
|
];
|
|
|
|
foreach ($pages as $page) {
|
|
Page::updateOrCreate(['slug' => $page['slug']], $page);
|
|
}
|
|
}
|
|
}
|