@extends('layouts/acc_layout') @section('title', '| Monthly Vehicle Log') @section('content') @include('successMsg')
Add Monthly Vehicle Log
{!! Form::open(array('url' => '','id'=>'entryForm', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!} {!! Form::hidden('designationId', $designationId) !!} {!! Form::hidden('employeeId', $employeeId) !!} {!! Form::hidden('branchId', $branchId) !!} {!! Form::hidden('companyId', $companyId) !!} {!! Form::hidden('projectId', $projectId) !!} {!! Form::hidden('projectTypeId', $projectTypeId) !!}
{!! Form::label('allowanceMonth', 'Month:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('allowanceMonth', $allowanceMonth, ['class' => 'form-control', 'style'=>'cursor:pointer', 'id' => 'date', 'readonly'])!!}
{!! Form::label('employeeIdName', 'Employee:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('employeeIdName', $employeeIdName, ['class' => 'form-control', 'id' => 'employeeIdName', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('designation', 'Designation:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('designation', $designation, ['class' => 'form-control', 'id' => 'designation', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('previousReading', 'Previous Reading (KM):', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('previousReading', $previousReading, ['class' => 'form-control', 'id' => 'previousReading', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('presentReading', 'Present Reading (KM):', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('presentReading', null, ['class' => 'form-control', 'id' => 'presentReading', 'type' => 'text', 'placeholder' => 'Enter Present Meter Reading (KM)', 'autocomplete'=>'off', 'onkeyup' => 'calculateDistance()']) !!}
{!! Form::label('personalUse', 'Personal Use (KM):', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('personalUse', null, ['class' => 'form-control', 'id' => 'personalUse', 'type' => 'text', 'placeholder' => 'Enter Personally Used Distance (KM)', 'autocomplete'=>'off', 'onkeyup' => 'calculateDistance()']) !!}
@if($allowanceInfo->allowanceMethod == 'MeterReadingWise')
{!! Form::label('distence', 'Distence (KM):', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('distence', null, ['class' => 'form-control', 'id' => 'distence', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('fuelCost', 'Fule Cost:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('fuelCost', null, ['class' => 'form-control', 'id' => 'fuelCost', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('mobilCost', 'Mobil Cost:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('mobilCost', $allowanceInfo->mobilCost, ['class' => 'form-control', 'id' => 'mobilCost', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('servicingCost', 'Servicing Cost:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('servicingCost', $allowanceInfo->servicingCost, ['class' => 'form-control', 'id' => 'servicingCost', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('toalCost', 'Total Cost:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('toalCost', null, ['class' => 'form-control', 'id' => 'toalCost', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
@elseif($allowanceInfo->allowanceMethod == 'Fixed')
{!! Form::label('fuelCost', 'Fule Cost:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('fuelCost', $allowanceInfo->fixedFuelCost, ['class' => 'form-control', 'id' => 'fuelCost', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('mobilCost', 'Mobil Cost:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('mobilCost', $allowanceInfo->mobilCost, ['class' => 'form-control', 'id' => 'mobilCost', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('servicingCost', 'Servicing Cost:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('servicingCost', $allowanceInfo->servicingCost, ['class' => 'form-control', 'id' => 'servicingCost', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('toalCost', 'Total Cost:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('toalCost', ($allowanceInfo->fixedFuelCost + $allowanceInfo->mobilCost + $allowanceInfo->servicingCost), ['class' => 'form-control', 'id' => 'toalCost', 'type' => 'text', 'autocomplete'=>'off', 'readonly']) !!}
@endif
{!! Form::label('logBookImage', 'Log Book Image:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::file('logBookImage', ['class' => 'form-control', 'id' => 'logBookImage']) !!}

{!! Form::label('', '', ['class' => 'col-sm-5 control-label']) !!}
{!! Form::submit('Submit', ['id' => 'specialMemberCashInHandAdjustmentConfigurationSubmit', 'class' => 'btn btn-success']) !!} Close
{!! Form::close() !!}
@endsection