6e66f707d5
Full restore of the7d854ffsnapshot (2026-06-16 18:05, before the security review). Forward commit, no history rewrite —f8a1310and all later commits remain recoverable in history. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
775 B
PHP
32 lines
775 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Reports;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Project;
|
|
use App\Models\Phase;
|
|
use App\Models\Inspection;
|
|
use Maatwebsite\Excel\Facades\Excel;
|
|
use App\Exports\ProjectsExport;
|
|
use App\Exports\PhasesExport;
|
|
use App\Exports\InspectionsExport;
|
|
use Illuminate\Http\Request;
|
|
|
|
class ExportController extends Controller
|
|
{
|
|
public function exportProjects(Request $request)
|
|
{
|
|
return Excel::download(new ProjectsExport, 'projects.xlsx');
|
|
}
|
|
|
|
public function exportPhases(Request $request)
|
|
{
|
|
return Excel::download(new PhasesExport, 'phases.xlsx');
|
|
}
|
|
|
|
public function exportInspections(Request $request)
|
|
{
|
|
return Excel::download(new InspectionsExport, 'inspections.xlsx');
|
|
}
|
|
}
|