@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!='') @endif @if ($accessory->model_number)
{{ trans('general.model_no')}}
{{ $accessory->model_number }}
@endif @if ($accessory->company)
{{ trans('general.company')}}
@endif @if ($accessory->location)
{{ trans('general.location')}}
@endif @if ($accessory->category)
{{ trans('general.category')}}
@endif @if ($accessory->manufacturer)
{{ trans('general.manufacturer')}}
@endif @if ($accessory->notes)
{{ trans('general.notes') }}
{!! nl2br(Helper::parseEscapedMarkedownInline($accessory->notes)) !!}
@endif @if ($accessory->purchase_date)
{{ trans('general.purchase_date') }}
{{ \App\Helpers\Helper::getFormattedDateObject($accessory->purchase_date, 'date')['formatted']}}
@endif @if ($accessory->purchase_cost)
{{ trans('general.purchase_cost') }}
{{ Helper::formatCurrencyOutput($accessory->purchase_cost) }}
@endif
{{ trans('admin/accessories/general.remaining') }}
{{ $accessory->numRemaining() }}
{{ trans('general.checked_out') }}
{{ $accessory->checkouts_count }}
{{ trans('general.created_at') }}
{{ \App\Helpers\Helper::getFormattedDateObject($accessory->created_at, 'datetime')['formatted']}}
@if ($accessory->created_at!=$accessory->updated_at)
{{ trans('general.updated_at') }}
{{ \App\Helpers\Helper::getFormattedDateObject($accessory->updated_at, 'datetime')['formatted']}}
@endif
{{ trans('general.created_by') }}
@if ($accessory->adminuser) {{ $accessory->adminuser->present()->fullName() }} @else {{ trans('admin/reports/general.deleted_user') }} @endif
@can('update', \App\Models\Accessory::class) @endcan @can('checkout', \App\Models\Accessory::class) @endcan @can('create', \App\Models\Accessory::class) @endcan @can('delete', $accessory) @if ($accessory->checkouts_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