@extends('backend/layouts/default') {{-- Page title --}} @section('title') @if ($asset->id) @lang('admin/hardware/form.update') :: @else @lang('admin/hardware/form.create') :: @endif @parent @stop {{-- Page content --}} @section('content')
@lang('general.back')

@if ($asset->id) @lang('admin/hardware/form.update') @else @lang('admin/hardware/form.create') @endif

@if ($asset->id)
@else @endif
@if ($asset->id) @else @endif {{ $errors->first('asset_tag', ' :message') }}
{{ $errors->first('serial', '
:message') }}
{{ $errors->first('name', '
:message') }}
@if (isset($selected_model)) {{ Form::select('model_id', $model_list , $selected_model->id, array('class'=>'select2 model', 'style'=>'min-width:400px')) }} @else {{ Form::select('model_id', $model_list , Input::old('model_id', $asset->model_id), array('class'=>'select2 model', 'style'=>'min-width:400px')) }} @endif {{ $errors->first('model_id', '
:message') }}
{{ $errors->first('purchase_date', '
:message') }}
{{ Form::select('supplier_id', $supplier_list , Input::old('supplier_id', $asset->supplier_id), array('class'=>'select2', 'style'=>'min-width:350px')) }} {{ $errors->first('supplier_id', '
:message') }}
{{ $errors->first('order_number', '
:message') }}
@lang('general.currency') {{ $errors->first('purchase_cost', '
:message') }}
@lang('admin/hardware/form.months') {{ $errors->first('warranty_months', '
:message') }}
{{ Form::select('status_id', $statuslabel_list , Input::old('status_id', $asset->status_id), array('class'=>'select2', 'style'=>'width:350px')) }} {{ $errors->first('status_id', '
:message') }}
{{ $errors->first('notes', '
:message') }}
{{ Form::select('rtd_location_id', $location_list , Input::old('rtd_location_id', $asset->rtd_location_id), array('class'=>'select2', 'style'=>'width:350px')) }} {{ $errors->first('status_id', '
:message') }}
@if (!$asset->id)
{{ Form::select('assigned_to', $assigned_to , Input::old('assigned_to', $asset->assigned_to), array('class'=>'select2', 'style'=>'min-width:350px')) }}

@lang('admin/hardware/form.help_checkout')

{{ $errors->first('assigned_to', '
:message') }}
@endif
@lang('button.cancel')
@stop