<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AutoInvoiceController;

// Auto Invoice Routes
Route::get('auto-invoices', [AutoInvoiceController::class, 'index'])->name('auto-invoices.index');
Route::post('auto-invoices/generate-from-contracts', [AutoInvoiceController::class, 'generateFromContracts'])->name('auto-invoices.generate-from-contracts');
Route::post('auto-invoices/generate-from-schedules', [AutoInvoiceController::class, 'generateFromSchedules'])->name('auto-invoices.generate-from-schedules');
Route::post('auto-invoices/run-auto-generation', [AutoInvoiceController::class, 'runAutoGeneration'])->name('auto-invoices.run-auto-generation');
