mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Added nicer formatting for model details
This commit is contained in:
parent
0c524e0830
commit
3dae464c34
|
@ -67,85 +67,98 @@
|
|||
|
||||
<!-- side address column -->
|
||||
<div class="col-md-3">
|
||||
<h4>More Info:</h4>
|
||||
<ul class="list-unstyled">
|
||||
@if ($model->manufacturer)
|
||||
<li>
|
||||
{{ trans('general.manufacturer') }}:
|
||||
@can('view', \App\Models\Manufacturer::class)
|
||||
<a href="{{ route('manufacturers.show', $model->manufacturer->id) }}">
|
||||
{{ $model->manufacturer->name }}
|
||||
</a>
|
||||
@else
|
||||
{{ $model->manufacturer->name }}
|
||||
@endcan
|
||||
</li>
|
||||
@endif
|
||||
@if ($model->manufacturer->url)
|
||||
<div class="box box-default">
|
||||
<div class="box-header with-border">
|
||||
<div class="box-heading">
|
||||
<h3 class="box-title"> More Info:</h3>
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
@if ($model->image)
|
||||
<img src="{{ url('/') }}/uploads/models/{{ $model->image }}" class="img-responsive"></li>
|
||||
@endif
|
||||
|
||||
|
||||
<ul class="list-unstyled" style="line-height: 25px;">
|
||||
@if ($model->manufacturer)
|
||||
<li>
|
||||
<i class="fa fa-globe"></i> <a href="{{ $model->manufacturer->url }}">{{ $model->manufacturer->url }}</a>
|
||||
{{ trans('general.manufacturer') }}:
|
||||
@can('view', \App\Models\Manufacturer::class)
|
||||
<a href="{{ route('manufacturers.show', $model->manufacturer->id) }}">
|
||||
{{ $model->manufacturer->name }}
|
||||
</a>
|
||||
@else
|
||||
{{ $model->manufacturer->name }}
|
||||
@endcan
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
@if ($model->manufacturer->url)
|
||||
<li>
|
||||
<i class="fa fa-globe"></i> <a href="{{ $model->manufacturer->url }}">{{ $model->manufacturer->url }}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if ($model->manufacturer->support_url)
|
||||
@if ($model->manufacturer->support_url)
|
||||
<li>
|
||||
<i class="fa fa-life-ring"></i> <a href="{{ $model->manufacturer->support_url }}">{{ $model->manufacturer->support_url }}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if ($model->manufacturer->support_phone)
|
||||
<li>
|
||||
<i class="fa fa-phone"></i> {{ $model->manufacturer->support_phone }}
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if ($model->manufacturer->support_email)
|
||||
<li>
|
||||
<i class="fa fa-envelope"></i> <a href="mailto:{{ $model->manufacturer->support_email }}">{{ $model->manufacturer->support_email }}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if ($model->model_number)
|
||||
<li>
|
||||
<i class="fa fa-life-ring"></i> <a href="{{ $model->manufacturer->support_url }}">{{ $model->manufacturer->support_url }}</a>
|
||||
{{ trans('general.model_no') }}:
|
||||
{{ $model->model_number }}
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if ($model->manufacturer->support_phone)
|
||||
@if ($model->depreciation)
|
||||
<li>
|
||||
<i class="fa fa-phone"></i> {{ $model->manufacturer->support_phone }}
|
||||
{{ trans('general.depreciation') }}:
|
||||
{{ $model->depreciation->name }} ({{ $model->depreciation->months.' '.trans('general.months')}})
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if ($model->manufacturer->support_email)
|
||||
<li>
|
||||
<i class="fa fa-envelope"></i> <a href="mailto:{{ $model->manufacturer->support_email }}">{{ $model->manufacturer->support_email }}</a>
|
||||
@if ($model->eol)
|
||||
<li>{{ trans('general.eol') }}:
|
||||
{{ $model->eol .' '. trans('general.months') }}
|
||||
</li>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if ($model->model_number)
|
||||
<li>
|
||||
{{ trans('general.model_no') }}:
|
||||
{{ $model->model_number }}
|
||||
</li>
|
||||
@endif
|
||||
@if ($model->fieldset)
|
||||
<li>{{ trans('admin/models/general.fieldset') }}:
|
||||
<a href="{{ route('fieldsets.show', $model->fieldset->id) }}">{{ $model->fieldset->name }}</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if ($model->depreciation)
|
||||
<li>
|
||||
{{ trans('general.depreciation') }}:
|
||||
{{ $model->depreciation->name }} ({{ $model->depreciation->months.' '.trans('general.months')}})
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if ($model->eol)
|
||||
<li>{{ trans('general.eol') }}:
|
||||
{{ $model->eol .' '. trans('general.months') }}
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@if ($model->fieldset)
|
||||
<li>{{ trans('admin/models/general.fieldset') }}:
|
||||
<a href="{{ route('fieldsets.show', $model->fieldset->id) }}">{{ $model->fieldset->name }}</a>
|
||||
</li>
|
||||
@endif
|
||||
@if ($model->deleted_at!='')
|
||||
<li><br /><a href="{{ route('restore/model', $model->id) }}" class="btn-flat large info ">{{ trans('admin/models/general.restore') }}</a></li>
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
@if ($model->image)
|
||||
<li><br /><img src="{{ url('/') }}/uploads/models/{{ $model->image }}" class="img-responsive"></li>
|
||||
@endif
|
||||
|
||||
@if ($model->deleted_at!='')
|
||||
<li><br /><a href="{{ route('restore/model', $model->id) }}" class="btn-flat large info ">{{ trans('admin/models/general.restore') }}</a></li>
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
@if ($model->note)
|
||||
Notes:
|
||||
<p>
|
||||
{!! $model->present()->note() !!}
|
||||
</p>
|
||||
@endif
|
||||
@if ($model->note)
|
||||
Notes:
|
||||
<p>
|
||||
{!! $model->present()->note() !!}
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
|
Loading…
Reference in a new issue