@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('admin/hardware/general.view') }} {{ $asset->asset_tag }} @parent @stop {{-- Right header --}} @section('header_right') @can('manage', \App\Models\Asset::class) @if ($asset->deleted_at=='') @endif @endcan @stop {{-- Page content --}} @section('content')
@if (!$asset->model)

NO MODEL ASSOCIATED

This will break things in weird and horrible ways. Edit this asset now to assign it a model.

@endif @if ($asset->deleted_at!='')
WARNING: This asset has been deleted. You must restore it before you can assign it to someone.
@endif
@can('update', \App\Models\Asset::class) @include ('modals.upload-file', ['item_type' => 'asset', 'item_id' => $asset->id]) @endcan @stop @section('moar_scripts') @include ('partials.bootstrap-table') @stop