@extends('layouts/edit-form', [
'createText' => trans('admin/hardware/form.create'),
'updateText' => trans('admin/hardware/form.update'),
'helpTitle' => trans('admin/hardware/general.about_assets_title'),
'helpText' => trans('admin/hardware/general.about_assets_text'),
'formAction' => ($item) ? route('hardware.update', ['hardware' => $item->id]) : route('hardware.store'),
])
{{-- Page content --}}
@section('inputFields')
@include ('partials.forms.edit.company')
@if ($item->model && $item->model->fieldset)
model; ?>
@endif
@if (Input::old('model_id'))
@elseif (isset($selected_model))
@endif
@if (isset($model) && $model)
@include("models/custom_fields_form",["model" => $model])
@endif
@include ('partials.forms.edit.status')
@if (!$item->id)
@endif
@include ('partials.forms.edit.serial', ['translated_serial' => trans('admin/hardware/form.serial')])
@include ('partials.forms.edit.name', ['translated_name' => trans('admin/hardware/form.name')])
@include ('partials.forms.edit.purchase_date')
@include ('partials.forms.edit.supplier')
@include ('partials.forms.edit.order_number')
id && $item->assetloc) {
$currency_type = $item->assetloc->currency;
}
?>
@include ('partials.forms.edit.purchase_cost', ['currency_type' => $currency_type])
@include ('partials.forms.edit.warranty')
@include ('partials.forms.edit.notes')
@include ('partials.forms.edit.requestable', ['requestable_text' => trans('admin/hardware/general.requestable')])
@if ($item->image)
@endif
@stop
@section('moar_scripts')
@include('partials/modals')
@stop