diff --git a/resources/views/reports/asset_maintenances.blade.php b/resources/views/reports/asset_maintenances.blade.php
index 05ac4e1db3..79dbb806cd 100644
--- a/resources/views/reports/asset_maintenances.blade.php
+++ b/resources/views/reports/asset_maintenances.blade.php
@@ -41,30 +41,32 @@
$totalCost = 0;
?>
@foreach ($assetMaintenances as $assetMaintenance)
-
- {{ is_null($assetMaintenance->asset->company) ? '' : $assetMaintenance->asset->company->name }} |
- {{ $assetMaintenance->asset->asset_tag }} |
- {{ $assetMaintenance->asset->name }} |
- {{ $assetMaintenance->supplier->name }} |
- {{ $assetMaintenance->asset_maintenance_type }} |
- {{ $assetMaintenance->title }} |
- {{ $assetMaintenance->start_date }} |
- {{ is_null($assetMaintenance->completion_date) ? trans('admin/asset_maintenances/message.asset_maintenance_incomplete') : $assetMaintenance->completion_date }} |
- @if (is_null($assetMaintenance->asset_maintenance_time))
- diffInDays(Carbon::parse($assetMaintenance->start_date)));
- ?>
- @else
- asset_maintenance_time);
- ?>
- @endif
- {{ $assetMaintenanceTime }} |
-
- {{ $snipeSettings->default_currency }}
- {{ number_format($assetMaintenance->cost,2) }}
- |
-
+ @if ($assetMaintenance->asset)
+
+ {{ ($assetMaintenance->asset->company) ? $assetMaintenance->asset->company->name : '' }} |
+ {{ $assetMaintenance->asset->asset_tag }} |
+ {{ $assetMaintenance->asset->name }} |
+ {{ $assetMaintenance->supplier->name }} |
+ {{ $assetMaintenance->asset_maintenance_type }} |
+ {{ $assetMaintenance->title }} |
+ {{ $assetMaintenance->start_date }} |
+ {{ is_null($assetMaintenance->completion_date) ? trans('admin/asset_maintenances/message.asset_maintenance_incomplete') : $assetMaintenance->completion_date }} |
+ @if (is_null($assetMaintenance->asset_maintenance_time))
+ diffInDays(Carbon::parse($assetMaintenance->start_date)));
+ ?>
+ @else
+ asset_maintenance_time);
+ ?>
+ @endif
+ {{ $assetMaintenanceTime }} |
+
+ {{ $snipeSettings->default_currency }}
+ {{ number_format($assetMaintenance->cost,2) }}
+ |
+
+ @endif
cost);