@extends('layouts.app')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="d-flex justify-content-between align-items-center mb-4">
                <h1><i class="fas fa-users"></i> Assemblee</h1>
                <a href="{{ route('admin.assemblee.create') }}" class="btn btn-primary">
                    <i class="fas fa-plus"></i> Nuova Assemblea
                </a>
            </div>

            {{-- Dashboard Assemblee --}}
            <div class="row mb-4">
                <div class="col-md-4">
                    <div class="card text-center">
                        <div class="card-body">
                            <h5 class="card-title">Programmate</h5>
                            <h3 class="text-info">3</h3>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card text-center">
                        <div class="card-body">
                            <h5 class="card-title">Completate</h5>
                            <h3 class="text-success">15</h3>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="card text-center">
                        <div class="card-body">
                            <h5 class="card-title">Questo Mese</h5>
                            <h3 class="text-primary">2</h3>
                        </div>
                    </div>
                </div>
            </div>

            {{-- Lista Assemblee --}}
            <div class="card">
                <div class="card-header">
                    <h5>Prossime Assemblee</h5>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>Data</th>
                                    <th>Stabile</th>
                                    <th>Tipo</th>
                                    <th>Stato</th>
                                    <th>Azioni</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>25/07/2025</td>
                                    <td>Milano Centro</td>
                                    <td>Ordinaria</td>
                                    <td><span class="badge bg-warning">Programmata</span></td>
                                    <td>
                                        <a href="#" class="btn btn-sm btn-outline-primary">Modifica</a>
                                        <a href="#" class="btn btn-sm btn-outline-info">Verbale</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
