mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Merge pull request #14494 from snipe/features/add_supplier_address_to_licenses
Added supplier details to license view
This commit is contained in:
commit
1f29eb1875
|
@ -174,23 +174,56 @@
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
@if ($license->supplier_id)
|
@if ($license->supplier)
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<strong>
|
<strong>{{ trans('general.supplier') }}</strong>
|
||||||
{{ trans('general.supplier') }}
|
|
||||||
</strong>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
@if ($license->supplier)
|
@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 }}
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
{{ trans('general.deleted') }}
|
{{ $license->supplier->name }}
|
||||||
|
@endcan
|
||||||
|
|
||||||
|
@if ($license->supplier->url)
|
||||||
|
<br><i class="fas fa-globe-americas" aria-hidden="true"></i> <a href="{{ $license->supplier->url }}" rel="noopener">{{ $license->supplier->url }}</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
@if ($license->supplier->phone)
|
||||||
|
<br><i class="fas fa-phone" aria-hidden="true"></i>
|
||||||
|
<a href="tel:{{ $license->supplier->phone }}">{{ $license->supplier->phone }}</a>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if ($license->supplier->email)
|
||||||
|
<br><i class="far fa-envelope" aria-hidden="true"></i> <a href="mailto:{{ $license->supplier->email }}">{{ $license->supplier->email }}</a>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if ($license->supplier->address)
|
||||||
|
<br>{{ $license->supplier->address }}
|
||||||
|
@endif
|
||||||
|
@if ($license->supplier->address2)
|
||||||
|
<br>{{ $license->supplier->address2 }}
|
||||||
|
@endif
|
||||||
|
@if ($license->supplier->city)
|
||||||
|
<br>{{ $license->supplier->city }},
|
||||||
|
@endif
|
||||||
|
@if ($license->supplier->state)
|
||||||
|
{{ $license->supplier->state }}
|
||||||
|
@endif
|
||||||
|
@if ($license->supplier->country)
|
||||||
|
{{ $license->supplier->country }}
|
||||||
|
@endif
|
||||||
|
@if ($license->supplier->zip)
|
||||||
|
{{ $license->supplier->zip }}
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@else
|
||||||
|
{{ trans('general.deleted') }}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue