@if(isset($product)) {{ Form::model($product, array('route' => array('estimations.products.update', $estimation->id,$product->id), 'method' => 'PUT')) }} @else {{ Form::model($estimation, array('route' => array('estimations.products.store', $estimation->id), 'method' => 'POST')) }} @endif
{{ Form::label('product_id', __('Product'),['class'=>'form-label']) }} {{ Form::select('product_id', $products,null, array('class' => 'form-control select2','required'=>'required')) }}
{{ Form::label('quantity', __('Quantity'),['class'=>'form-label']) }} {{ Form::number('quantity', isset($product)?null:1, array('class' => 'form-control','required'=>'required','min'=>'1')) }}
{{ Form::label('description', __('Description'),['class'=>'form-label']) }} {{ Form::textarea('description', null, array('class' => 'form-control')) }}
@if(isset($product)) @else @endif
{{ Form::close() }}