<div class="wrap erp-ac-form-wrap">
    <h2><?php 
_e('New Invoice', '$domain');
?>
</h2>

    <?php 
$accounts_receivable_id = WeDevs\ERP\Accounting\Model\Ledger::code('120')->first()->id;
$dropdown = erp_ac_get_chart_dropdown(['exclude' => [1, 2, 3, 5], 'required' => true, 'name' => 'line_account[]']);
?>

    <form action="" method="post" class="erp-form" style="margin-top: 30px;">

        <ul class="form-fields block" style="width:50%;">

            <li>
                <ul class="erp-form-fields two-col block">
                    <li class="erp-form-field">
                        <?php 
erp_html_form_input(array('label' => __('Customer', 'erp-accounting'), 'name' => 'user_id', 'placeholder' => __('Select a payee', 'erp-accounting'), 'type' => 'select', 'class' => 'select2', 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_get_peoples_array(['type' => 'customer', 'number' => 100])));
?>
                    </li>

                    <li class="erp-form-field">
                        <?php 
erp_html_form_input(array('label' => __('Reference', 'erp-accounting'), 'name' => 'ref', 'type' => 'text', 'addon' => '#'));
?>
                    </li>
                </ul>
            </li>
<div class="wrap erp-ac-form-wrap">
    <h2><?php 
_e('Vendor Credit', 'erp-accounting');
?>
</h2>


    <?php 
$accounts_payable_id = WeDevs\ERP\Accounting\Model\Ledger::code('200')->first()->id;
$dropdown = erp_ac_get_chart_dropdown(['exclude' => [1, 4, 5], 'required' => true, 'name' => 'line_account[]']);
?>

    <form action="" method="post" class="erp-form" style="margin-top: 30px;">

        <ul class="form-fields block" style="width:50%;">

            <li>
                <ul class="erp-form-fields two-col block">
                    <li class="erp-form-field">
                        <?php 
erp_html_form_input(array('label' => __('Vendor', 'erp-accounting'), 'name' => 'user_id', 'type' => 'select', 'class' => 'select2', 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_get_peoples_array(['type' => 'vendor', 'number' => 100]), 'custom_attr' => ['data-placeholder' => __('Select a payee', 'erp-accounting')]));
?>
                    </li>

                    <li class="erp-form-field">
                        <?php 
erp_html_form_input(array('label' => __('Reference', 'erp-accounting'), 'name' => 'ref', 'type' => 'text', 'addon' => '#'));
?>
                    </li>
                </ul>
            </li>