@extends('layouts/default') {{-- Page title --}} @section('title') {{ $accessory->name }} {{ trans('general.accessory') }} @if ($accessory->model_number!='') ({{ $accessory->model_number }}) @endif @parent @stop {{-- Page content --}} @section('content') {{-- Page content --}}
@if ($accessory->image!='')
{{ $accessory->name }}
@endif @if ($accessory->company)
{{ trans('general.company')}}
@endif @if ($accessory->category)
{{ trans('general.category')}}
@endif @if ($accessory->notes)
{{ trans('general.notes') }}
{!! nl2br(Helper::parseEscapedMarkedownInline($accessory->notes)) !!}
@endif
{{ trans('admin/accessories/general.remaining') }}
{{ $accessory->numRemaining() }}
{{ trans('general.checked_out') }}
{{ $accessory->users_count }}
@can('checkout', \App\Models\Accessory::class) @endcan @can('update', \App\Models\Accessory::class) @endcan @can('update', \App\Models\Accessory::class) @endcan @can('delete', $accessory) @if ($accessory->users_count == 0)
@else @endif @endcan
@can('accessories.files', Accessory::class) @include ('modals.upload-file', ['item_type' => 'accessory', 'item_id' => $accessory->id]) @endcan @stop @section('moar_scripts') @include ('partials.bootstrap-table') @stop