<?php

namespace App\Http\Controllers\Comptabilite;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class ReportController extends Controller
{
    public function index()
    {
        return view('comptabilite.reports.index');
    }

    public function generate(Request $request)
    {
        return response()->json(['success' => true]);
    }

    public function export(Request $request)
    {
        return response()->streamDownload(function () {
            // Export logic
        }, 'report.csv');
    }
}
