@include('layouts.components.select_field', [
'col' => 12,
'name' => 'branch_id',
'options' => $branches,
'default_option'=> __('lang.select_project'),
'label' => __('lang.project'),
'selectedValue' => $branch_id,
'readOnlyField' => $action == 'edit' ? true : false,
])
@include('layouts.components.select_field', [
'col' => 12,
'name' => 'lease_id',
'options' => [],
'default_option'=> __('lang.select_lease'),
'label' => __('lang.lease'),
'selectedValue' => $lease_id,
'readOnlyField' => $action == 'edit' ? true : false,
'parent_id' => 'lease_id_div',
])
@include('admin.partials.bank',[
'data'=>[
'made_of_payment' =>$lease_receipt_voucher->mode_of_payment ?? null,
'bank_id' =>$lease_receipt_voucher->bank_id ?? null,
]])
@include('layouts.components.input_field',
[
'col' => '6',
'name' => 'cheque_no',
'id' => 'cheque_no',
'parent_class' => 'cheque_field bank_field',
'label' => __('lang.instrument_no'),
'value' => $lease_receipt_voucher->cheque_number ?? ''
])
@php
$cheque_date = $lease_receipt_voucher->cheque_date? date('d/m/Y', strtotime($lease_receipt_voucher->cheque_date)) : null;
@endphp
@include('layouts.components.date_field', [
'col' => 6,
"name" => "cheque_date",
'parent_class' => 'cheque_field bank_field',
"label" => __('lang.instrument_date'),
"value" => $cheque_date,
])
@php
$voucher_date = date('d/m/Y');
if($action == 'edit'){
$voucher_date = date('d/m/Y', strtotime($lease_receipt_voucher->voucher_date));
}
@endphp
@include('layouts.components.date_field', [
'col' => 12,
"name" => "receipt_date",
"label" => __('lang.receipt_date'),
"value" => $voucher_date,
])
@include('layouts.components.input_field',
[
'col' => '12',
'name' => 'particulars',
'id' => 'particulars',
'label' => __('lang.particulars'),
'value' => $lease_receipt_voucher->particulars ?? ''
])
@include('admin.partials.reference',['voucher_reference' => $voucher_reference])