Fixed #15050 - erroneous deleted remark

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-08 22:13:07 +01:00
parent bf060d43a7
commit 09cc9b92d1

View file

@ -175,11 +175,13 @@
@if ($license->supplier) @if ($license->supplier)
<div class="row"> <div class="row">
<div class="col-md-3"> <div class="col-md-3">
<strong>{{ trans('general.supplier') }}</strong> <strong>{{ trans('general.supplier') }}</strong>
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
@if ($license->supplier->deleted_at=='')
@can('view', \App\Models\Supplier::class) @can('view', \App\Models\Supplier::class)
<a href="{{ route('suppliers.show', $license->supplier->id) }}"> <a href="{{ route('suppliers.show', $license->supplier->id) }}">
{{ $license->supplier->name }} {{ $license->supplier->name }}
@ -219,12 +221,12 @@
@if ($license->supplier->zip) @if ($license->supplier->zip)
{{ $license->supplier->zip }} {{ $license->supplier->zip }}
@endif @endif
</div>
</div>
@else @else
{{ trans('general.deleted') }} {{ trans('general.deleted') }}
@endif @endif
</div>
</div>
@endif
@if (isset($license->expiration_date)) @if (isset($license->expiration_date))