@extends('layouts.app')

@section('content')
<h1 class="mb-4">Reports</h1>

<p>This is the reports page. You can add report filters and options here.</p>
<form method="GET" action="{{ route('reports.exportPdf') }}" target="_blank" class="mb-3">
    <label for="period" class="form-label">Select Report Period:</label>
    <select name="period" id="period" class="form-select" required>
        <option value="day">Day</option>
        <option value="week">Week</option>
        <option value="month" selected>Month</option>
        <option value="three_months">Three Months</option>
        <option value="six_months">Six Months</option>
        <option value="year">Year</option>
    </select>
    <button type="submit" class="btn btn-primary mt-2">
        <i class="fas fa-file-pdf me-1"></i> Export Report as PDF
    </button>
</form>

<!-- <a href="{{ route('reports.exportPdf') }}" class="btn btn-primary" target="_blank">
    <i class="fas fa-file-pdf me-1"></i> Export Report as PDF
</a> -->

@endsection
