@extends('layout.padrao') @section('title', 'Create - Local Hauling Rate') @section('content') @if($errors->any())
@foreach($errors->all() as $error) {{ $error }}
@endforeach
@endif {{ Form::open(array('method' => 'post', 'enctype'=>'multipart/form-data', 'route'=>'storeHauling' , 'id'=>'localhauling_create')) }} {{ csrf_field() }}
{!! Form::label('hauling_id', 'Hauling Company', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::select('hauling_id', $select['haulings'] , old('hauling_id',null), ['class' => 'form-control ', 'id' => 'clients']) !!}
{!! Form::label('maxTons', 'Max Ton', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('maxTons', old('maxTons',null) , ['class' => 'form-control ', 'step' =>'0.01']) !!}
{!! Form::label('truckAxles', 'Truck Axles', [ 'class' => 'w-100 control-label' ]) !!} {!! Form::number('truckAxles', old('truckAxles',null) , ['class' => 'form-control ', 'step' =>'0.01']) !!}
{!! Form::label('haulingValidadeFrom', 'Quote Valid From', [ 'class' => 'w-100 control-label', ]) !!} {!! Form::date('haulingValidadeFrom', old('haulingValidadeFrom',null) , ['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',null) , ['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',null), ['class' => 'form-control'])!!}
{!! Form::label('platforms_id', 'Products', [ 'class' => 'w-100 control-label']) !!} {!! Form::select('platforms_id[]', $select['platforms'], old('platforms_id[]',null), ['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[]',null), ['class' => 'container_types_id form-control','multiple'=>'multiple']) !!}
{!! Form::label('tareTons', 'Tare Tons', [ 'class' => 'w-100 control-label']) !!} {!! Form::number('tareTons', old('tareTons',null) , ['class' => 'form-control ', 'step' =>'0.01']) !!}

TRUCKING COST

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