@extends('layouts.marketing')

@section('title', 'Campagnes - Marketing')
@section('page-title', 'Gestion des Campagnes')

@section('content')
<div class="d-flex justify-content-between align-items-center mb-4">
    <h5 class="mb-0"><i class="bi bi-send me-2"></i>Campagnes Marketing</h5>
    <a href="{{ route('marketing.campaigns.create') }}" class="btn btn-primary">
        <i class="bi bi-plus-lg me-2"></i>Nouvelle Campagne
    </a>
</div>

<div class="row g-4 mb-4">
    <div class="col-md-4">
        <div class="card stat-card bg-primary text-white">
            <div class="card-body">
                <h6 class="opacity-75">Campagnes actives</h6>
                <h3 class="mb-0">0</h3>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="card stat-card bg-success text-white">
            <div class="card-body">
                <h6 class="opacity-75">Taux d'ouverture moyen</h6>
                <h3 class="mb-0">0%</h3>
            </div>
        </div>
    </div>
    <div class="col-md-4">
        <div class="card stat-card bg-info text-white">
            <div class="card-body">
                <h6 class="opacity-75">Conversions ce mois</h6>
                <h3 class="mb-0">0</h3>
            </div>
        </div>
    </div>
</div>

<div class="card">
    <div class="card-header">
        <h6 class="mb-0">Liste des Campagnes</h6>
    </div>
    <div class="card-body">
        <div class="alert alert-info">
            <i class="bi bi-info-circle me-2"></i>
            Aucune campagne n'a encore été créée. Cliquez sur "Nouvelle Campagne" pour commencer.
        </div>
        
        <!-- Table des campagnes (à remplir) -->
        <table class="table table-hover d-none">
            <thead class="table-light">
                <tr>
                    <th>Nom</th>
                    <th>Type</th>
                    <th>Statut</th>
                    <th>Envoyés</th>
                    <th>Ouvertures</th>
                    <th>Clics</th>
                    <th>Date</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                <!-- Campagnes ici -->
            </tbody>
        </table>
    </div>
</div>
@endsection
