@extends('layouts.app') @section('content')
Update Stock
{{ Html::ul($errors->all()) }} {{ Form::model($stock, array('route' => array('stocks.update', $stock->id), 'method' => 'PUT', 'class' => 'form-horizontal', 'id' => '"maskForm"')) }}
{{ Form::label('type', 'Select type of Stock', array( 'class' => 'col-lg-3 col-form-label')) }}
{{ Form::select('type', array('NaN' => 'NaN', 'PREFERRED' => 'Preferred Stock', 'COMMON' => 'Common Stock'), Input::old('type'), array('class' => 'form-control m-input')) }}
Please select type of stock
{{ Form::label('_company_id', 'Select Company of Stock', array( 'class' => 'col-lg-3 col-form-label')) }}
{{ Form::label('_market_id', 'Select Market of Stock', array( 'class' => 'col-lg-3 col-form-label')) }}
{{ Form::label('price', 'Price', array( 'class' => 'col-lg-3 col-form-label')) }}
{{ Form::number('price', Input::old('price'), array('class' => 'form-control m-input', 'placeholder' => '00.00', 'required' => 'required', 'step'=>'0.001')) }} @if ($errors->has('title')) {{ $errors->first('price') }} @endif
{{ Form::label('description', 'Description', array('class' => 'col-lg-3 col-form-label')) }}
{{ Form::textarea('description', Input::old('description'), array('class' => 'form-control m-input', 'placeholder' => 'Enter your stock description')) }} @if ($errors->has('description')) {{ $errors->first('description') }} @endif
{{ Form::submit('Update Stock!', array('class' => 'btn btn-success')) }} {{ Form::reset('Reset!', array('class' => 'btn btn-secondary')) }}
{{ Form::close() }}
@endsection