A free open source IT asset/license management system
Check for purchase_cost before adding the “each”
snipe1dacd25e6d91
diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.phpindex 90469d8727..a59b0534b2 100755--- a/resources/views/hardware/view.blade.php+++ b/resources/views/hardware/view.blade.php@@ -1211,7 +1211,11 @@<a href="{{ route('components.show', $component->id) }}">{{ $component->name }}</a></td><td>{{ $component->pivot->assigned_qty }}</td>- <td>{{ trans('general.cost_each', ['amount' => Helper::formatCurrencyOutput($component->purchase_cost)]) }} </td>+ <td>+ @if ($component->purchase_cost!='')+ {{ trans('general.cost_each', ['amount' => Helper::formatCurrencyOutput($component->purchase_cost)]) }}+ @endif+ </td><td>{{ $component->serial }}</td><td><a href="{{ route('components.checkin.show', $component->pivot->id) }}" class="btn btn-sm bg-purple hidden-print" data-tooltip="true">{{ trans('general.checkin') }}</a>