@extends('layouts.acc_layout') @section('title', '| Add Rent Auto Voucher') @section('stylesheets') @endsection @section('content')
@if(Auth::user()->branchId == 1)
View Rent Auto Voucher
@else
Add Rent Auto Voucher
@endif
Project - {{ $rentVoucher->projectName}}
Project Type - {{ $rentVoucher->projectTypeCode}} - {{ $rentVoucher->projectTypeName}}
Branch - {{ $rentVoucher->branchCodeWith0}} - {{ $rentVoucher->branchName}}
Rent Month - {{ $rentMonth }}
{!! Form::open(array('url' => '', 'role' => 'form', 'class'=>'form-horizontal form-groups')) !!} {{ Form::hidden("companyIdFk", $rentVoucher->companyIdFk) }} {{ Form::hidden("projectIdFk", $rentVoucher->projectIdFk) }} {{ Form::hidden("projectTypeIdFk", $rentVoucher->projectTypeIdFk) }} {{ Form::hidden("rentTypeIdFk", $rentVoucher->rentTypeIdFk) }} {{ Form::hidden("rentIdFk", $rentVoucher->rentIdFk) }} {{ Form::hidden("branchIdFk", $rentVoucher->branchId) }} {{ Form::hidden("rentMonth", $rentMonth) }} {{ Form::hidden("rentDebitLedgerCodeIdFk", $rentAutoVoucherConfig->rentDebitLedgerCodeIdFk) }} {{ Form::hidden("rentLocalNarration", $rentAutoVoucherConfig->rentLocalNarration) }} {{ Form::hidden("rentGlobalNarration", $rentAutoVoucherConfig->rentGlobalNarration) }} @if($journalVoucherRequired) {{ Form::hidden("rentAmount", ($rentVoucher->rentAmount - $adjustmentAmount)) }} @else {{ Form::hidden("rentAmount", $rentVoucher->rentAmount) }} @endif @if( ($rentVoucher->advanceAmount != 0) && ($rentVoucher->monthlyAdvanceDeductionRequired == 1) ) {{ Form::hidden("advanceAmount", $rentVoucher->advanceAmount) }} {{ Form::hidden("monthlyAdvanceDeductionRequired", $rentVoucher->monthlyAdvanceDeductionRequired) }} @if($journalVoucherRequired) {{ Form::hidden("monthlyAdvanceDeductionAmount", $adjustmentAmount) }} @endif {{ Form::hidden("adjustmentDebitLedgerCodeIdFk", $rentAutoVoucherConfig->adjustmentDebitLedgerCodeIdFk) }} {{ Form::hidden("adjustmentCreditLedgerCodeIdFk", $rentAutoVoucherConfig->adjustmentCreditLedgerCodeIdFk) }} {{ Form::hidden("adjustmentGlobalNarration", $rentAutoVoucherConfig->adjustmentGlobalNarration) }} @endif
{{-- --}}
Payment TypeSelect Ledger
@if(Auth::user()->branchId != 1) @else @endif
@php $rentDebitLedger = DB::table('acc_account_ledger')->where('id', $rentAutoVoucherConfig->rentDebitLedgerCodeIdFk)->selectRaw("CONCAT(code, ' - ', name) AS account")->value('account'); $adjustmentDebitLedger = DB::table('acc_account_ledger')->where('id', $rentAutoVoucherConfig->adjustmentDebitLedgerCodeIdFk)->selectRaw("CONCAT(code, ' - ', name) AS account")->value('account'); $adjustmentCreditLedger = DB::table('acc_account_ledger')->where('id', $rentAutoVoucherConfig->adjustmentCreditLedgerCodeIdFk)->selectRaw("CONCAT(code, ' - ', name) AS account")->value('account'); @endphp @if($journalVoucherRequired or $debitVoucherRequired) @else
No Voucher To Make !
@endif {!! Form::close() !!}
{{-- ./panel-body --}}
{{-- ./col-md-12 --}}
{{-- .row --}}
{{-- ./panel-body --}}
{{-- ./panel --}} {{-- ./col-md-10 --}}
@endsection