@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_close_id', 'options' => [], 'default_option'=> __('lang.select_lease_close'), 'label' => __('lang.lease_close'), 'selectedValue' => $lease_close_id, 'readOnlyField' => $action == 'edit' ? true : false, 'parent_id' => 'lease_close_id_div', ]) @include('layouts.components.select_field', [ 'col' => 12, 'name' => 'dealer_id', 'options' => [], 'default_option'=> __('lang.select_dealer'), 'label' => __('lang.dealers'), 'selectedValue' => $dealers, 'readOnlyField' => $action == 'edit' ? true : false, 'parent_id' => 'dealer_div', ])
@include('admin.partials.bank',[ 'data'=>[ 'made_of_payment' =>$payment_voucher->mode_of_payment ?? null, 'bank_id' =>$payment_voucher->bank_id ?? null, ]])
@php $cheque_date = $payment_voucher->cheque_date? date('d/m/Y', strtotime($payment_voucher->cheque_date)) : null; @endphp
@php $date_of_collection = date('d/m/Y'); if($action == 'edit'){ $date_of_collection = date('d/m/Y', strtotime($payment_voucher->voucher_date)); } @endphp