diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php
index 0ed8e10e03..167ad70287 100755
--- a/resources/views/hardware/view.blade.php
+++ b/resources/views/hardware/view.blade.php
@@ -1198,10 +1198,14 @@
@endif
+ @if (Storage::exists('private_uploads/assets/'.$file->filename))
{{ $file->filename }}
+ @else
+ {{ $file->filename }}
+ @endif
|
-
- {{ @Helper::formatFilesizeUnits(Storage::size('private_uploads/assets/'.$file->filename)) }}
+ |
+ {{ @Helper::formatFilesizeUnits(Storage::exists('private_uploads/assets/'.$file->filename) ? Storage::size('private_uploads/assets/'.$file->filename) : '') }}
|
@if ($file->note)
@@ -1209,7 +1213,7 @@
@endif
|
- @if ($file->filename)
+ @if (($file->filename) && (Storage::exists('private_uploads/assets/'.$file->filename)))
@@ -1291,10 +1295,14 @@
@endif
|
- {{ $file->filename }}
+ @if (Storage::exists('private_uploads/assetmodels/'.$file->filename))
+ {{ $file->filename }}
+ @else
+ {{ $file->filename }}
+ @endif
|
-
- {{ Helper::formatFilesizeUnits(Storage::size('private_uploads/assetmodels/'.$file->filename)) }}
+ |
+ {{ Helper::formatFilesizeUnits(@Storage::size('private_uploads/assetmodels/'.$file->filename)) }}
|
@if ($file->note)
@@ -1302,7 +1310,7 @@
@endif
|
- @if ($file->filename)
+ @if (($file->filename) && (Storage::exists('private_uploads/assetmodels/'.$file->filename)))
|