@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->id) @else @endif {!! $errors->first('asset_tag', ' :message') !!}
@if (isset($selected_model)) {{ Form::select('model_id', $model_list , $selected_model->id, array('class'=>'select2 model', 'style'=>'width:100%','id' =>'model_select_id')) }} @else {{ Form::select('model_id', $model_list , Input::old('model_id', $item->model_id), array('class'=>'select2 model', 'style'=>'width:100%','id' =>'model_select_id')) }} @endif {!! $errors->first('model_id', ' :message') !!}
New
@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')
{{ Form::select('rtd_location_id', $location_list , Input::old('rtd_location_id', $item->rtd_location_id), array('class'=>'select2', 'style'=>'width:100%','id'=>'rtd_location_select')) }} {!! $errors->first('rtd_location_id', ' :message') !!}
New
@include ('partials.forms.edit.requestable', ['requestable_text' => trans('admin/hardware/general.requestable')]) @if ($item->image)
{{ Form::checkbox('image_delete'),array('class' => 'minimal') }} {!! $errors->first('image_delete', ':message') !!}
@endif
{!! $errors->first('image', ':message') !!}
@stop @section('moar_scripts') @include('partials/modals') @stop