@extends("layout") @section("content")
@if (Session::has('message'))
{{ trans(Session::get('message')) }}
@endif @if($errors->all())
{{ HTML::ul($errors->all()) }}
@endif
New ICT Asset
{{ Form::open(array('url' => 'icttinventory/store', 'autocomplete' => 'off', 'class' => 'form-horizontal', 'data-toggle' => 'validator')) }}
{{ Form::label('equipment_name', 'Asset Name', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('equipment_name',null,['class' => 'form-control','placeholder' => 'Name', 'required' => 'true']) }} @if ($errors->has('equipment_name')) {{ $errors->first('equipment_name') }} @endif
{{ Form::label('description', 'Description', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('description',null,['class' => 'form-control','placeholder' => 'Asset Description', 'required' => 'true']) }} @if ($errors->has('model')) {{ $errors->first('model') }} @endif
{{ Form::label('type', 'Type/Category', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('type',null,['class' => 'form-control','placeholder' => 'type/category', 'required' => 'true']) }} @if ($errors->has('model')) {{ $errors->first('model') }} @endif
{{ Form::label('serial_number', 'Serial number', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('serial_number',null,['class' => 'form-control','placeholder' => 'Serial number', 'required' => 'true']) }} @if ($errors->has('serial_number')) {{ $errors->first('serial_number') }} @endif
{{ Form::label('model', 'Model/Manufacturer', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('model',null,['class' => 'form-control','placeholder' => 'Model', 'required' => 'true']) }} @if ($errors->has('model')) {{ $errors->first('model') }} @endif
{{ Form::label('location', 'User/Location', array('class'=>'control-label')) }}
{{ Form::text('location',null,['class' => 'form-control','placeholder' => 'location/user']) }}
{{ Form::label('location', 'Department', array('class'=>'control-label')) }}
{{ Form::select('location', array_merge(array(null => 'Select'), $location_list), Input::old('location'), array('class' => 'form-control', 'id' => 'location_id')) }} @if ($errors->has('location')) {{ $errors->first('location') }} @endif
{{ Form::label('supplier_id', 'Supplier', array('class'=>'control-label')) }}
{{ Form::select('supplier_id', array(null => 'Select')+ $supplier_list, Input::old('supplier'), array('class' => 'form-control', 'id' => 'service_contract_id')) }} @if ($errors->has('supplier_id')) {{ $errors->first('supplier_id') }} @endif
{{ Form::label('procurement_type', 'Procurement type', array('class'=>'control-label')) }}
{{ Form::select('procurement_type', array(null => 'Select')+ array('0' => 'Placement', '1' => 'Procured', '2' => 'Donation'), Input::old('procurement_type'), array('class' => 'form-control', 'id' => 'procurement_type_id')) }} @if ($errors->has('procurement_type')) {{ $errors->first('procurement_type') }} @endif
{{ Form::label('purchase_date', 'Purchase date', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('purchase_date', Input::old('purchase_date'),array('class' => 'form-control standard-datepicker purchase-date')) }}
{{ Form::label('delivery_date', 'Delivery date', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('delivery_date', Input::old('delivery_date'),array('class' => 'form-control standard-datepicker delivery-date')) }}
{{ Form::label('verification_date', 'Verification date', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('verification_date', Input::old('verification_date'),array('class' => 'form-control standard-datepicker verification-date')) }}
{{ Form::label('installation_date', 'Installation date', ['class' => 'col-md-2 control-label']) }}
{{ Form::text('installation_date', Input::old('installation_date'),array('class' => 'form-control standard-datepicker installation-date')) }}
{{ Form::label('spare_parts', 'Spare parts', array('class'=>'control-label')) }}
{{ Form::select('spare_parts', array(null => 'Select')+ $yes_no_list, Input::old('spare_parts'), array('class' => 'form-control', 'id' => 'spare_parts_id','required'=>'required')) }} @if ($errors->has('spare_parts')) {{ $errors->first('spare_parts') }} @endif
{{ Form::label('warranty', 'Warranty period', array('class'=>'control-label')) }}
{{ Form::select('warranty', array(null => 'Select')+ $warranty_list, Input::old('warranty'), array('class' => 'form-control', 'id' => 'warranty_id','required'=>'required')) }} @if ($errors->has('warranty')) {{ $errors->first('warranty') }} @endif
{{ Form::label('life_time', 'Lifetime', ['class' => 'col-md-2 control-label']) }}
{{ Form::number('life_time',null,['class' => 'form-control','placeholder' => 'Lifetime', 'required' => '']) }} Years
@if ($errors->has('life_time')) {{ $errors->first('life_time') }} @endif
{{ Form::label('service_frequency', 'Service frequency', array('class'=>'control-label')) }}
{{ Form::select('service_frequency', array(null => 'Select')+ $service_frequency_list, Input::old('service_frequency'), array('class' => 'form-control', 'id' => 'service_frequency_id','required'=>'required')) }} @if ($errors->has('service_frequency')) {{ $errors->first('service_frequency') }} @endif
{{ Form::label('service_contract', 'Service Contract', array('class'=>'control-label')) }}
{{ Form::select('service_contract', array(null => 'Select')+ $yes_no_list, Input::old('service_contract'), array('class' => 'form-control', 'id' => 'service_contract_id','required'=>'required')) }} @if ($errors->has('service_contract')) {{ $errors->first('service_contract') }} @endif
Cancel
{{ Form::close() }}