@extends('layouts/acc_layout') @section('title', '| Rent Auto Voucher Configuration') @section('content') @include('successMsg')
Edit Rent Auto Voucher Configuration
{!! Form::open(['role' => 'form', 'class' => 'form-horizontal form-groups', 'id' => 'form']) !!} {!! Form::hidden('id', $rentAutoVoucherConfig->id) !!}
{!! Form::label('companyId', 'Company:', ['class' => 'col-sm-4 control-label']) !!}
@php $companyIds = DB::table('gnr_company')->select('id','name')->get(); @endphp
{!! Form::label('projectId', 'Project:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::label('projectTypeId', 'Project Type:', ['class' => 'col-sm-4 control-label']) !!}
{!! Form::label('rentTypeId', 'Rent Type:', ['class' => 'col-sm-4 control-label']) !!}
@php $rentTypeIds = DB::table('acc_rent_type')->select('id','name')->get(); @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'])!!}

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']) !!}
{!! 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']) !!}
{!! 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']) !!}

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']) !!}
{!! 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']) !!}
{!! 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']) !!}
{!! 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']) !!}

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