- Remove unused FeaturesController (empty stubs, no routes) - Remove ConvertSpatialFile CLI command (unused; service used in LayerManager) - Remove MigrateGeojsonToFeatures CLI command (one-shot migration, not referenced) - Remove .claude/worktrees/ (11 old agent worktrees from June) - Apply Laravel Pint formatting across 219 files (style only, no functional changes) Tests: 101 passing (319 assertions) API routes: unchanged (8 routes intact)
39 lines
790 B
PHP
39 lines
790 B
PHP
<?php
|
|
|
|
namespace App\Exports;
|
|
|
|
use App\Models\Phase;
|
|
use Maatwebsite\Excel\Concerns\FromCollection;
|
|
use Maatwebsite\Excel\Concerns\WithHeadings;
|
|
|
|
class PhasesExport implements FromCollection, WithHeadings
|
|
{
|
|
public function collection()
|
|
{
|
|
return Phase::select([
|
|
'id',
|
|
'project_id',
|
|
'name',
|
|
'progress_percent',
|
|
'start_date',
|
|
'end_date',
|
|
'created_at',
|
|
'updated_at',
|
|
])->get();
|
|
}
|
|
|
|
public function headings(): array
|
|
{
|
|
return [
|
|
'ID',
|
|
'ID Proyecto',
|
|
'Nombre',
|
|
'Progreso (%)',
|
|
'Fecha de inicio',
|
|
'Fecha de fin',
|
|
'Creado el',
|
|
'Actualizado el',
|
|
];
|
|
}
|
|
}
|