@extends('layouts/default') {{-- Page title --}} @section('title') {{ $model->name }} {{ ($model->model_number) ? '(#'.$model->model_number.')' : '' }} @parent @stop @section('header_right') @can('update', \App\Models\AssetModel::class)
@endcan @stop {{-- Page content --}} @section('content')

{{ trans('general.moreinfo') }}:

@if ($model->image) @endif
    @if ($model->category)
  • {{ trans('general.category') }}: {{ $model->category->name }}
  • @endif @if ($model->created_at)
  • {{ trans('general.created_at') }}: {{ Helper::getFormattedDateObject($model->created_at, 'datetime', false) }}
  • @endif @if ($model->min_amt)
  • {{ trans('general.min_amt') }}: {{$model->min_amt }}
  • @endif @if ($model->manufacturer)
  • {{ trans('general.manufacturer') }}: @can('view', \App\Models\Manufacturer::class) {{ $model->manufacturer->name }} @else {{ $model->manufacturer->name }} @endcan
  • @if ($model->manufacturer->url)
  • {{ $model->manufacturer->url }}
  • @endif @if ($model->manufacturer->support_url)
  • {{ $model->manufacturer->support_url }}
  • @endif @if ($model->manufacturer->support_phone)
  • {{ $model->manufacturer->support_phone }}
  • @endif @if ($model->manufacturer->support_email)
  • {{ $model->manufacturer->support_email }}
  • @endif @endif @if ($model->model_number)
  • {{ trans('general.model_no') }}: {{ $model->model_number }}
  • @endif @if ($model->depreciation)
  • {{ trans('general.depreciation') }}: {{ $model->depreciation->name }} ({{ $model->depreciation->months.' '.trans('general.months')}})
  • @endif @if ($model->eol)
  • {{ trans('general.eol') }}: {{ $model->eol .' '. trans('general.months') }}
  • @endif @if ($model->fieldset)
  • {{ trans('admin/models/general.fieldset') }}: {{ $model->fieldset->name }}
  • @endif @if ($model->notes)
  • {{ trans('general.notes') }}: {!! nl2br(Helper::parseEscapedMarkedownInline($model->notes)) !!}
  • @endif
@if ($model->note) Notes:

{!! $model->present()->note() !!}

@endif
@can('update', \App\Models\AssetModel::class) @endcan @can('create', \App\Models\AssetModel::class) @endcan @can('delete', \App\Models\AssetModel::class)
@if ($model->deleted_at!='')
@csrf
@elseif ($model->assets()->count() > 0) @else
@endif @endcan
@can('update', \App\Models\AssetModel::class) @include ('modals.upload-file', ['item_type' => 'models', 'item_id' => $model->id]) @endcan @stop @section('moar_scripts') @include ('partials.bootstrap-table', ['exportFile' => 'manufacturer' . $model->name . '-export', 'search' => false]) @stop