@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-select', ['translated_name' => trans('general.company'), 'fieldname' => 'company_id'])
@if ($item->id) @else @endif {!! $errors->first('asset_tag', ' :message') !!}
@include ('partials.forms.edit.model-select', ['translated_name' => trans('admin/hardware/form.model'), 'fieldname' => 'model_id'])
@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) @include ('partials.forms.edit.user-select', ['translated_name' => trans('admin/hardware/form.checkout_to'), 'fieldname' => 'assigned_user']) @include ('partials.forms.edit.asset-select', ['translated_name' => trans('admin/hardware/form.checkout_to'), 'fieldname' => 'assigned_asset']) @include ('partials.forms.edit.location-select', ['translated_name' => trans('admin/hardware/form.checkout_to'), 'fieldname' => 'assigned_location']) @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-select', ['translated_name' => trans('general.supplier'), 'fieldname' => 'supplier_id']) @include ('partials.forms.edit.order_number') id && $item->location) { $currency_type = $item->location->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.location-select', ['translated_name' => trans('admin/hardware/form.default_location'), 'fieldname' => 'rtd_location_id']) @include ('partials.forms.edit.requestable', ['requestable_text' => trans('admin/hardware/general.requestable')]) @if ($item->image)
@endif
{!! $errors->first('image', ':message') !!}
@stop @section('moar_scripts') @stop