@extends('layouts/front') @section('title', setting('app_name')) @section('header_dark')@endsection @section('content') @php $dm = is_darkmode(); $badge = theme_config('hero_badge', 'Hébergement nouvelle génération'); $title = theme_config('hero_title') ?: setting('app_name'); $subtitle = theme_config('hero_subtitle', 'Des solutions d\'hébergement haute performance, disponibles 24h/24, avec un support réactif.'); $ctaPrimText = theme_config('hero_cta_primary_text', 'Voir nos offres'); $ctaPrimUrl = theme_config('hero_cta_primary_url') ?: route('front.store.index'); $ctaSecText = theme_config('hero_cta_secondary_text', 'Espace client'); $ctaSecUrl = theme_config('hero_cta_secondary_url') ?: (auth()->check() ? route('front.client.index') : route('login')); $stats = [ ['value' => theme_config('hero_stat1_value', '99.9%'), 'label' => theme_config('hero_stat1_label', 'Disponibilité')], ['value' => theme_config('hero_stat2_value', '24/7'), 'label' => theme_config('hero_stat2_label', 'Support')], ['value' => theme_config('hero_stat3_value', 'NVMe'), 'label' => theme_config('hero_stat3_label', 'Stockage')], ['value' => theme_config('hero_stat4_value', 'Anti-DDoS'),'label' => theme_config('hero_stat4_label', 'Protection')], ]; $heroImageDb = \App\Models\Admin\Setting::where('name', 'theme_home_image')->value('value'); $heroImage = $heroImageDb ? setting('theme_home_image', '') : ''; $heroBg = $dm ? 'background:linear-gradient(135deg,#07001a 0%,#0f0527 45%,#0a0120 100%)' : 'background:linear-gradient(155deg,#faf7ff 0%,#f0ebff 45%,#ffffff 100%)'; @endphp {{-- ============================================================ --}} {{-- SECTION 1 : HÉRO --}} {{-- ============================================================ --}} {{-- Blobs décoratifs --}} @if($dm) @else @endif {{-- GAUCHE --}} @if($badge) {{ $badge }} @endif {{ $title }} {{ theme_config('hero_gradient_text', 'Haute Performance') }} {{ $subtitle }} {{ $ctaPrimText }} {{ $ctaSecText }} {{-- Stats --}} @if(theme_config('hero_show_stats', 'true') !== 'false') @foreach($stats as $stat) @if($stat['value']) {{ $stat['value'] }} {{ $stat['label'] }} @endif @endforeach @endif {{-- DROITE : image ou cartes géométriques --}} @if($heroImage) @else {{-- Lueur centrale --}} {{-- Carte 1 — grande, arrière, violet foncé --}} {{-- Carte 2 — milieu, fuchsia --}} {{-- Carte 3 — avant, claire --}} {{-- Accents petits --}} @endif {{-- ===== SECTIONS ADMIN (entre hero et contenu fixe) ===== --}} {!! render_theme_sections() !!} {{-- ============================================================ --}} {{-- SECTION 3 : CTA --}} {{-- ============================================================ --}} {{-- Fond déco --}} Prêt à lancer votre projet ? Rejoignez des milliers de clients qui nous font confiance pour leur hébergement. {{ $ctaPrimText }} {{ $ctaSecText }} @endsection
{{ $subtitle }}
Rejoignez des milliers de clients qui nous font confiance pour leur hébergement.