@extends('super-admin.layout')

@section('title', 'Reports')

@section('content')
<div class="pg-head">
    <div>
        <h1>Reports</h1>
        <p>Download CSV exports for events, revenue, usage, and organisations.</p>
    </div>
    <a href="{{ route('mexco.super.analytics') }}" class="btn-outline">← Analytics</a>
</div>

<div style="display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;max-width:820px">
    @foreach([
        ['events', 'Events report', 'All events with plan, organisation, and usage counts.'],
        ['revenue', 'Revenue report', 'All invoices with amounts and payment dates.'],
        ['usage', 'Usage report', 'Per-event participant, session, and booth usage.'],
        ['organisations', 'Organisations report', 'Organisation directory with event and organiser counts.'],
    ] as [$type, $title, $desc])
        <div class="card form-panel">
            <h2 style="font-size:1rem">{{ $title }}</h2>
            <p class="panel-lead">{{ $desc }}</p>
            <a href="{{ route('mexco.super.reports.export', ['type' => $type]) }}" class="btn-purple btn-sm">Download CSV</a>
        </div>
    @endforeach
</div>
@endsection
