@extends('layouts/acc_layout') @section('title', '| Rent Auto Voucher Configuration') @section('content') @include('successMsg')
View Rent 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', $rentAutoVoucherConfig->companyIdFk)->select('name')->first(); @endphp
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-4 control-label']) !!}
@php $projectId = DB::table('gnr_project')->where('id', $rentAutoVoucherConfig->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', $rentAutoVoucherConfig->projectTypeIdFk)->select('name','projectTypeCode')->first(); @endphp
{!! Form::label('rentTypeId', 'Rent Type:', ['class' => 'col-sm-4 control-label']) !!}
@php $rentTypeId = DB::table('acc_rent_type')->where('id', $rentAutoVoucherConfig->rentTypeIdFk)->select('name')->first(); @endphp
{!! Form::label('effectiveDate', 'Effective Date:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('effectiveDate', date('d-m-Y', strtotime($rentAutoVoucherConfig->effectiveDate)), ['class' => 'form-control', 'style'=>'cursor:pointer', 'placeholder' => 'dd-mm-yyyy', 'id' => 'effectiveDate', 'readonly'])!!}

Rent Part (Debit):

{!! Form::label('rentDebitLedgerCode', 'Debit Ledger Code:', ['class' => 'col-sm-4 control-label']) !!}
@php $code = DB::table('acc_account_ledger')->where('status', 1)->where('id', $rentAutoVoucherConfig->rentDebitLedgerCodeIdFk)->value('code'); @endphp {!! Form::text('rentDebitLedgerCode', $code, ['class' => 'form-control', 'id' => 'rentDebitLedgerCode', 'type' => 'text', 'placeholder' => 'Enter Rent Debit Ledger Code', 'autocomplete'=>'off', 'readonly']) !!}
{{--
{!! Form::label('rentCreditLedgerCode', 'Credit Ledger Code:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('rentCreditLedgerCode', $rentAutoVoucherConfig->rentCreditLedgerCode, ['class' => 'form-control', 'id' => 'rentCreditLedgerCode', 'type' => 'text', 'placeholder' => 'Enter Rent Credit Ledger Code', 'autocomplete'=>'off' , 'readonly']) !!}
--}}
{!! Form::label('rentLocalNarration', 'Local Narration:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('rentLocalNarration', $rentAutoVoucherConfig->rentLocalNarration, ['class' => 'form-control', 'id' => 'rentLocalNarration', 'type' => 'text', 'placeholder' => 'Enter Rent Local Narration', 'autocomplete'=>'off' , 'readonly']) !!}
{!! Form::label('rentGlobalNarration', 'Global Narration:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('rentGlobalNarration', $rentAutoVoucherConfig->rentGlobalNarration, ['class' => 'form-control', 'id' => 'rentGlobalNarration', 'type' => 'text', 'placeholder' => 'Enter Rent Global Narration', 'autocomplete'=>'off' , 'readonly']) !!}

Adjustment Part (Journal):

{!! Form::label('adjustmentDebitLedgerCode', 'Debit Ledger Code:', ['class' => 'col-sm-4 control-label']) !!}
@php $code = DB::table('acc_account_ledger')->where('status', 1)->where('id', $rentAutoVoucherConfig->adjustmentDebitLedgerCodeIdFk)->value('code'); @endphp {!! Form::text('adjustmentDebitLedgerCode', $code, ['class' => 'form-control', 'id' => 'adjustmentDebitLedgerCode', 'type' => 'text', 'placeholder' => 'Enter Adjustment Debit Ledger Code', 'autocomplete'=>'off' , 'readonly']) !!}
{!! Form::label('adjustmentCreditLedgerCode', 'Credit Ledger Code:', ['class' => 'col-sm-4 control-label']) !!}
@php $code = DB::table('acc_account_ledger')->where('status', 1)->where('id', $rentAutoVoucherConfig->adjustmentCreditLedgerCodeIdFk)->value('code'); @endphp {!! Form::text('adjustmentCreditLedgerCode', $code, ['class' => 'form-control', 'id' => 'adjustmentCreditLedgerCode', 'type' => 'text', 'placeholder' => 'Enter Adjustment Credit Ledger Code', 'autocomplete'=>'off' , 'readonly']) !!}
{!! Form::label('adjustmentLocalNarration', 'Local Narration:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('adjustmentLocalNarration', $rentAutoVoucherConfig->adjustmentLocalNarration, ['class' => 'form-control', 'id' => 'adjustmentLocalNarration', 'type' => 'text', 'placeholder' => 'Enter Adjustment Local Narration', 'autocomplete'=>'off' , 'readonly']) !!}
{!! Form::label('adjustmentGlobalNarration', 'Global Narration:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::text('adjustmentGlobalNarration', $rentAutoVoucherConfig->adjustmentGlobalNarration, ['class' => 'form-control', 'id' => 'adjustmentGlobalNarration', 'type' => 'text', 'placeholder' => 'Enter Adjustment Global Narration', 'autocomplete'=>'off' , 'readonly']) !!}

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