diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 327c02413f..3b9104afcc 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -396,6 +396,9 @@ class ReportsController extends Controller $rows = [ ]; $header = [ ]; + if (e(Input::get('company_name')) == '1') { + $header[] = 'Company Name'; + } if (e(Input::get('asset_name')) == '1') { $header[] = 'Asset Name'; } @@ -461,6 +464,10 @@ class ReportsController extends Controller foreach ($assets as $asset) { $row = [ ]; + + if (e(Input::get('company_name')) == '1') { + $row[] = is_null($asset->company) ? '' : e($asset->company->name); + } if (e(Input::get('asset_name')) == '1') { $row[] = '"' .e($asset->name) . '"'; }