{!! Form::open(['url' => route('trip-routes.store'), 'id' => 'routes_form']) !!}

@lang('tracker::lang.Add Routes')

@php $repeat = [ 'daily' => __('tracker::lang.daily'), 'weekly' => __('tracker::lang.weekly'), ]; @endphp
{!! Form::label('location_id', __('lang.location') . ':' ) !!}
{!! Form::select('location_id', getLocations(null, false), auth()->user()->location_id??null , ['class' => 'form-control select2', 'id' => 'location_id', 'required', 'style' => 'width: 100%;']); !!}
{!! Form::label('title', __('tracker::lang.title') . ":*") !!} {!! Form::text('title', null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('user_ids', __('tracker::lang.Salesperson') . ':*') !!} {!! Form::select('user_ids[]', getSalesPersons(), null, [ 'class' => 'form-control select2', 'multiple' => true, 'required', 'style' => 'width: 100%;', ]) !!}
{!! Form::label('start_date', __('tracker::lang.Schedule start date') . ':*') !!}
{!! Form::text('start_date', @format_date('today'), ['class' => 'form-control datepicker', 'required', 'readonly']) !!}
{!! Form::label('end_date', __('tracker::lang.Schedule end date') . ':*') !!}
{!! Form::text('end_date', null, ['class' => 'form-control datepicker', 'required', 'readonly']) !!}
{{--
{!! Form::label('country_id', __('business.country') . ':' ) !!}
{!! Form::select('country_id', $countries, null , ['class' => 'form-control select2', 'id' => 'country_id', 'placeholder' => __('lang.selected'), 'style' => 'width: 100%;']); !!}
--}}
{!! Form::label('state_id', __('business.state') . ':' ) !!}
{!! Form::select('state_id', statesDefault()??[], null , ['class' => 'form-control select2', 'id' => 'state_id', 'placeholder' => __('lang.selected'), 'style' => 'width: 100%;']); !!}
{!! Form::label('city_id', __('business.city') . ':' ) !!}
{!! Form::select('city_id', [], null , ['class' => 'form-control select2', 'id' => 'city_id', 'placeholder' => __('lang.selected'), 'style' => 'width: 100%;']); !!}

{!! Form::close() !!}