@extends('layouts.appnew') @section('title') Vehicle Movement @endsection @section('navs') @endsection @section('content') @include ('patient.styles') @include ('common.errors') @include ('common.image_viewer') @include ('vehicle_movement.script')
{!! Form::open(['url' => route('vehicle_movement.update_route', [$vehicle_movement->id]), 'id' => 'idForm', 'files' => true]) !!} {!! EasyForm::setErrors($errors) !!} {!! EasyForm::setColSizes(4, 8) !!}
{!! EasyForm::location('location_from', null, old('location_from', $vehicle_movement->location_from), ['placeholder' => 'Starting Location'])!!} {!! EasyForm::input('latlong_from', null, old('latlong_from', $vehicle_movement->latlong_from), ['id' => 'latlong_from', 'readonly' => true, 'placeholder' => 'Autofill'])!!} {!! Form::hidden('estimated_distance', $vehicle_movement->estimated_distance, ['id' => 'estimated_distance']) !!} {!! Form::hidden('estimated_duration', $vehicle_movement->estimated_duration, ['id' => 'estimated_duration']) !!}
{!! EasyForm::location('location_to', null, old('location_to', $vehicle_movement->location_to), ['placeholder' => 'Ending Location'])!!}
{!! EasyForm::input('latlong_to', null, old('latlong_to', $vehicle_movement->latlong_to), ['class' => 'd-none', 'id' => 'latlong_to', 'readonly' => true, 'placeholder' => 'Autofill', 'onchange' => 'calcDistance()'])!!} {!! EasyForm::input('distance', null, old('distance', round($vehicle_movement->estimated_distance, 1).' kms'), ['id' => 'distance', 'readonly' => true, 'placeholder' => 'Distance', 'onchange' => 'calcDistance()'])!!} {!! EasyForm::input('duration', null, old('duration', round($vehicle_movement->estimated_duration, 2).' hours'), ['id' => 'duration', 'readonly' => true, 'placeholder' => 'Duration', 'onchange' => 'calcDistance()'])!!}
{!! EasyForm::submit('Submit') !!} {!! Form::close() !!}
@include ('layouts.map', ['callback' => 'initMapCustom']) @endsection