@extends('layout.padrao') @section('title', 'Edit - Local Hauling Rate') @section('content') @if($errors->any())
@foreach($errors->all() as $error) {{ $error }}
@endforeach
@endif {{ Form::open(array('method' => 'get', 'files'=>true, 'enctype'=>'multipart/form-data', 'route'=>array('updateHauling', $registers->id))) }} {{ csrf_field() }}
{!! Form::label('hauling_id', 'Hauling Company', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('hauling_id', $select['haulings'] , old('hauling_id', $registers->hauling_id), ['class' => 'form-control ', 'id' => 'clients']) !!}
{!! Form::label('maxTons', 'Max Ton', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('maxTons', old('maxTons' , $registers->maxTons) , ['class' => 'form-control ', 'step' =>'0.01']) !!}
{!! Form::label('truckAxles', 'Truck Axles', [ 'class' => 'w-100 control-label' ]) !!} {!! Form::number('truckAxles', old('truckAxles' , $registers->truckAxles) , ['class' => 'form-control ', 'step' =>'0.01']) !!}
{!! Form::label('haulingValidadeFrom', 'Quote Valid From', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('haulingValidadeFrom', old('haulingValidadeFrom' , $registers->haulingValidadeFrom) , ['class' => 'form-control ', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
{!! Form::label('haulingValidadeTo', 'Quote Valid To', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('haulingValidadeTo', old('haulingValidadeTo' , $registers->haulingValidadeTo) , ['class' => 'form-control ', 'min' => '2019-01-01', 'max' => '2080-01-01']) !!}
{!! Form::label('haulingQuoteReference', 'Hauling Quote #', [ 'class' => 'w-100 control-label', ]) !!} {!! form::text('haulingQuoteReference', old('haulingQuoteReference' , $registers->haulingQuoteReference), ['class' => 'form-control'])!!}
{!! Form::label('platforms_id', 'Produtos', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('platforms_id[]', $select['platforms'], old('platform_id', $registers->platforms_id), ['class' => 'platforms_id form-control','multiple'=>'multiple']) !!}
{!! Form::label('container_types_id', 'Container Type/Equipment', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('container_types_id[]', $select['containerTypes'], old('container_types_id',$registers->container_types_id), ['class' => 'container_types_id form-control','multiple'=>'multiple']) !!}
{!! Form::label('tareTons', 'Tare Tons', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('tareTons', old('tareTons' , $registers->tareTons) , ['class' => 'form-control ', 'step' =>'0.01']) !!}

TRUCKING COST

{!! Form::label('origin', 'Origin', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('origin', $select['cities'] , old('origin' , $registers->origin), ['class' => 'form-control ']) !!}
{!! Form::label('destinationI', 'Destination I', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('destinationI', $select['cities'] , old('destinationI' , $registers->destinationI), ['class' => 'form-control ']) !!}
{!! Form::label('destinationII', 'Destination II', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('destinationII', $select['cities'] , old('destinationII' , $registers->destinationII), ['class' => 'form-control ']) !!}
{!! Form::label('truckingCost', 'Trucking Cost - R$', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('truckingCost', old('truckingCost' , $registers->truckingCost) , ['class' => 'form-control ' , 'id' => 'truckingCost' , 'onkeyup' => 'doMath()', 'step' =>'0.01']) !!}
{!! Form::label('toll', 'Toll - R$', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('toll', old('toll' , $registers->toll) , ['class' => 'form-control ' , 'id' => 'toll' , 'onkeyup' => 'doMath()', 'step' =>'0.01']) !!}
{!! Form::label('flexitank_instalation', 'Flexitank Handling-R$', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('flexitank_instalation', old('flexitank_instalation' , $registers->flexitank_instalation) , ['class' => 'form-control toll', 'onkeyup' => 'doMath()', 'step' =>'0.01' , 'id' => 'flexitank_instalation']) !!}
{!! Form::label('totalAmount', 'Total Amount - R$', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::number('totalAmount', old('totalAmount' , $registers->totalAmount) , ['class' => 'form-control ' , 'id' => 'totalAmount' , 'onkeyup' => 'doMath()', 'readonly' => 'readonly']) !!}
{!! Form::label('addComments', 'ADDITIONAL COMMENTS', [ 'class' => 'w-100 control-label' , 'style' => 'margin-left:10px']) !!} {!! Form::textarea('addComments', old('addComments' , $registers->addComments) , ['class' => 'form-control textsAreaBig', 'rows' => 3 , 'style' => 'margin-left:10px;margin-bottom:10px', 'id' => 'comments']) !!}
@include('include.btn_atualizar') @endsection