@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 {{-- Some room for the modals --}} {{-- 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','id' =>'model_select_id')) }} @else {{ Form::select('model_id', $model_list , Input::old('model_id', $asset->model_id), array('class'=>'select2 model', 'style'=>'min-width:400px','id' =>'model_select_id')) }} @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','id'=>'supplier_select_id')) }} {{ $errors->first('supplier_id', '
:message') }}
{{ $errors->first('order_number', '
:message') }}
@if (($asset->id) && ($asset->assetloc)) {{{ $asset->assetloc->currency }}} @else {{{ Setting::first()->default_currency }}} @endif {{ $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 status_id', 'style'=>'width:350px','id'=>'status_select_id')) }}

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

{{ $errors->first('status_id', '
:message') }}
@if (!$asset->id) @endif
{{ $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','id'=>'rtd_location_select')) }} {{ $errors->first('rtd_location_id', '
:message') }}
@lang('button.cancel')
@stop