Check for valid supplier in license view

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-02-23 10:48:53 +00:00
parent 3271d020e9
commit 4a37632ef3

View file

@ -182,9 +182,13 @@
</strong>
</div>
<div class="col-md-9">
<a href="{{ route('suppliers.show', $license->supplier_id) }}">
{{ $license->supplier->name }}
</a>
@if ($license->supplier)
<a href="{{ route('suppliers.show', $license->supplier_id) }}">
{{ $license->supplier->name }}
</a>
@else
{{ trans('general.deleted') }}
@endif
</div>
</div>
@endif