@extends('layouts/default') {{-- Page title --}} @section('title') {{ $consumable->name }} {{ trans('general.consumable') }} @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
@if ($consumable->image!='') @endif @if ($consumable->purchase_date)
{{ trans('general.purchase_date') }}: {{ Helper::getFormattedDateObject($consumable->purchase_date, 'date', false) }}
@endif @if ($consumable->purchase_cost)
{{ trans('general.purchase_cost') }}: {{ $snipeSettings->default_currency }} {{ Helper::formatCurrencyOutput($consumable->purchase_cost) }}
@endif @if ($consumable->item_no)
{{ trans('admin/consumables/general.item_no') }}: {{ $consumable->item_no }}
@endif @if ($consumable->model_number)
{{ trans('general.model_no') }}: {{ $consumable->model_number }}
@endif @if ($consumable->manufacturer)
{{ trans('general.manufacturer') }}: {{ $consumable->manufacturer->name }}
@endif @if ($consumable->order_number)
{{ trans('general.order_number') }}: {{ $consumable->order_number }}
@endif @if ($consumable->notes)
{{ trans('general.notes') }}:
{!! nl2br(Helper::parseEscapedMarkedownInline($consumable->notes)) !!}
@endif @can('checkout', \App\Models\Consumable::class)


@if ($consumable->numRemaining() > 0) {{ trans('general.checkout') }} @else @endif
@can('update', \App\Models\Consumable::class) @endcan @can('delete', $consumable)
@if ($consumable->deleted_at=='') {{ trans('general.delete') }} @endif
@endcan @endcan
@can('consumables.files', \App\Models\Consumable::class) @include ('modals.upload-file', ['item_type' => 'consumable', 'item_id' => $consumable->id]) @endcan @stop @section('moar_scripts') @include ('partials.bootstrap-table', ['exportFile' => 'consumable' . $consumable->name . '-export', 'search' => false]) @stop