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
89 lines
5.0 KiB
PHP
Executable File
89 lines
5.0 KiB
PHP
Executable File
@extends('layouts.app')
|
|
|
|
@section('title', 'Login - Syspanel')
|
|
|
|
@section('content')
|
|
<div class="container py-5">
|
|
<div class="row justify-content-center align-items-center" style="min-height: 70vh;">
|
|
<div class="col-md-5">
|
|
<div class="card border-0 shadow-lg rounded-4 overflow-hidden">
|
|
<div class="row g-0">
|
|
<div class="col-12 bg-primary p-5 text-white text-center">
|
|
<i class="bi bi-cpu fs-1 mb-3"></i>
|
|
<h2 class="fw-bold">Bem-vindo de volta!</h2>
|
|
<p class="mb-0 text-white-50">Acesse sua conta para gerenciar seus serviços.</p>
|
|
</div>
|
|
<div class="col-12 p-5 bg-white">
|
|
@if(session('error'))
|
|
<div class="alert alert-danger border-0 shadow-sm mb-4">
|
|
{{ session('error') }}
|
|
</div>
|
|
@endif
|
|
<form method="POST" action="{{ route('login') }}">
|
|
@csrf
|
|
<div class="mb-4">
|
|
<label for="email" class="form-label fw-bold">E-mail</label>
|
|
<div class="input-group">
|
|
<span class="input-group-text bg-light border-end-0"><i class="bi bi-envelope text-muted"></i></span>
|
|
<input type="email" class="form-control bg-light border-start-0 ps-0 @error('email') is-invalid @enderror" id="email" name="email" value="{{ old('email') }}" placeholder="seu@email.com" required autocomplete="email" autofocus>
|
|
@error('email')
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ $message }}</strong>
|
|
</span>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-4">
|
|
<div class="d-flex justify-content-between">
|
|
<label for="password" class="form-label fw-bold">Senha</label>
|
|
@if (Route::has('password.request'))
|
|
<a href="{{ route('password.request') }}" class="text-decoration-none small">Esqueceu a senha?</a>
|
|
@endif
|
|
</div>
|
|
<div class="input-group">
|
|
<span class="input-group-text bg-light border-end-0"><i class="bi bi-lock text-muted"></i></span>
|
|
<input type="password" class="form-control bg-light border-start-0 border-end-0 ps-0 @error('password') is-invalid @enderror" id="password" name="password" placeholder="••••••••" required autocomplete="current-password">
|
|
<button class="btn btn-light border-start-0 toggle-password" type="button">
|
|
<i class="bi bi-eye text-muted"></i>
|
|
</button>
|
|
@error('password')
|
|
<span class="invalid-feedback" role="alert">
|
|
<strong>{{ $message }}</strong>
|
|
</span>
|
|
@enderror
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-4 form-check">
|
|
<input type="checkbox" class="form-check-input" id="remember" name="remember" {{ old('remember') ? 'checked' : '' }}>
|
|
<label class="form-check-label text-muted" for="remember">Lembrar de mim</label>
|
|
</div>
|
|
|
|
@include('partials.captcha')
|
|
|
|
<button type="submit" class="btn btn-primary btn-lg w-100 py-3 fw-bold shadow-sm rounded-pill mb-4">
|
|
Entrar
|
|
</button>
|
|
|
|
@if(Route::has('register') && \App\Models\Setting::get('public_registration') == 'on')
|
|
<div class="text-center">
|
|
<span class="text-muted">Não tem uma conta?</span>
|
|
<a href="{{ route('register') }}" class="text-decoration-none fw-bold">Cadastre-se</a>
|
|
</div>
|
|
@endif
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-center mt-4">
|
|
<a href="{{ route('index') }}" class="text-muted text-decoration-none small">
|
|
<i class="bi bi-arrow-left"></i> Voltar para o site
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|