|
@@ -14,7 +14,7 @@ class RequirementExport implements FromQuery, WithMapping, WithHeadings
|
|
|
|
|
|
public function query()
|
|
|
{
|
|
|
- return Requirement::with(['createdBy', 'plan','group', 'asset'])
|
|
|
+ return Requirement::with(['createdBy', 'plan', 'group', 'asset', 'projects'])
|
|
|
->orderBy("created_at")
|
|
|
->filter(request()->all());
|
|
|
}
|
|
@@ -32,6 +32,7 @@ class RequirementExport implements FromQuery, WithMapping, WithHeadings
|
|
|
$requirement->status,
|
|
|
$requirement->asset?->name,
|
|
|
$requirement->plan?->name,
|
|
|
+ $requirement->projects?->pluck("name")->join(","),
|
|
|
$requirement->priority,
|
|
|
$requirement->approval_status,
|
|
|
$requirement->note,
|
|
@@ -50,6 +51,7 @@ class RequirementExport implements FromQuery, WithMapping, WithHeadings
|
|
|
'Status',
|
|
|
'Plan',
|
|
|
'Asset',
|
|
|
+ 'Projects',
|
|
|
'Priority',
|
|
|
'Approval Status',
|
|
|
'Note',
|