@extends('layouts/acc_layout') @section('title', '| Vehicle Auto Vouchr Configuration') @section('content') @include('successMsg')
View Vehicle Auto Voucher Configuration
{!! Form::open(['role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'form']) !!}
{!! Form::label('companyId', 'Company:', ['class' => 'col-sm-4 control-label']) !!}
@php $companyId = DB::table('gnr_company')->where('id', $vehicleAutoVoucherConfig->companyIdFk)->select('name')->first(); @endphp
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-4 control-label']) !!}
@php $projectId = DB::table('gnr_project')->where('id', $vehicleAutoVoucherConfig->projectIdFk)->select('name','projectCode')->first(); @endphp
{!! Form::label('projectTypeId', 'Project Type:', ['class' => 'col-sm-4 control-label']) !!}
@php $projectTypeId = DB::table('gnr_project_type')->where('id', $vehicleAutoVoucherConfig->projectTypeIdFk)->select('name','projectTypeCode')->first(); @endphp
{!! Form::label('effectiveDate', 'Effective Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('effectiveDate', date('d-m-Y', strtotime($vehicleAutoVoucherConfig->effectiveDate)), ['class' => 'form-control', 'style'=>'cursor:pointer', 'placeholder' => 'dd-mm-yyyy', 'id' => 'effectiveDate', 'readonly'])!!}

{!! Form::label('localNarration', 'Local Narration:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('localNarration', $vehicleAutoVoucherConfig->localNarration, ['class' => 'form-control', 'id' => 'localNarration', 'type' => 'text', 'placeholder' => 'Enter Local Narration', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('globalNarration', 'Global Narration:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('globalNarration', $vehicleAutoVoucherConfig->globalNarration, ['class' => 'form-control', 'id' => 'globalNarration', 'type' => 'text', 'placeholder' => 'Enter Global Narration', 'autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('creditLedgerCode', 'Credit Ledger Code:', ['class' => 'col-sm-4 control-label']) !!}
@php $code = DB::table('acc_account_ledger')->where('status', 1)->where('id', $vehicleAutoVoucherConfig->creditLedgerIdFk)->value('code'); @endphp {!! Form::text('creditLedgerCode', $code, ['class' => 'form-control', 'id' => 'creditLedgerCode', 'type' => 'text', 'placeholder' => 'Enter credit ledger code', 'autocomplete'=>'off', 'readonly']) !!}

Debit Ledger Code:

{!! Form::label('fuelDebitLedgerCode', 'Fuel & Oil:', ['class' => 'col-sm-4 control-label']) !!}
@php $code = DB::table('acc_account_ledger')->where('status', 1)->where('id', $vehicleAutoVoucherConfig->fuelDebitLedgerCodeIdFk)->value('code'); @endphp {!! Form::text('fuelDebitLedgerCode', $code, ['class' => 'form-control', 'id' => 'fuelDebitLedgerCode', 'type' => 'text','autocomplete'=>'off', 'readonly']) !!}
{!! Form::label('maintenanceDebitLedgerCode', 'Repairs & Maintenance:', ['class' => 'col-sm-4 control-label']) !!}
@php $code = DB::table('acc_account_ledger')->where('status', 1)->where('id', $vehicleAutoVoucherConfig->maintenanceDebitLedgerCodeIdFk)->value('code'); @endphp {!! Form::text('maintenanceDebitLedgerCode', $code, ['class' => 'form-control', 'id' => 'maintenanceDebitLedgerCode', 'type' => 'text','autocomplete'=>'off', 'readonly']) !!}

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