<?php 

function pm_manage_bank_accounts_cb() {
	?>
	<div class="row">
		<div class="col-md-12">
			<div class="mt-4 mb-4" id="display-bank-accounts">
        		<div class="actions" data-deactivate="Deactivate" data-activate="Activate" data-edit="Edit"></div>
        		<div class="action-args" data-deactivate="id" data-activate="id" data-edit="id"></div>
        		<div class="action-callback" data-deactivate="deactivate_post" data-activate="activate_post"></div>
        		<div class="action-access" data-deactivate="deactivate_post" data-activate="activate_post" data-edit="pm_manage_bank_accounts"></div>
        		<div class="action-links" data-deactivate="false" data-activate="false" data-edit="pm-edit-bank-account"></div>
        		<div class="action-popup" data-edit=<?php echo json_encode(["onreturncb" => "getEntries", "onreturncbid" => "#display-bank-accounts", "width" => 800, "height" => 500]) ?>></div>
        		<div class="action-condition" data-deactivate='<?php echo json_encode(["status" => "active"]) ?>' data-activate='<?php echo json_encode(["status" => "inactive"]) ?>'></div>
        		<div class="settings" data-type="pm_bank_account"></div>
        		<div class="display-result"></div>
        	</div>
		</div>
		<div class="col-md-8">
			<div class="panel-body instruction">
	        	<form method="post" id="bank_account_form" action="contents/plugins/payment_module/ajax.php" data-clearform=1 data-callback="getEntries" data-callbackid="#display-bank-accounts">
	        		<?php 
	        		input(['label' => 'Account Name', 'id' => 'account_name', 'required' => 'required']);
	        		input(['label' => 'Account Number', 'id' => 'account_number', 'required' => 'required', 'class' => 'form-control numbers-only']);
	        		input(['label' => 'Bank Name', 'id' => 'bank_name', 'required' => 'required']);
	        		select(['label' => 'Account Type', 'id' => 'account_type', 'required' => 'required'], ['Current Account' => 'Current Account', 'Savings Account' => 'Savings Account']);
	        		input(['label' => 'Account Identity', 'id' => 'account_id', 'hint' => 'This will be used to reference the account on the system. Leave empty to use the bank name as the reference.']);
	        		textarea(['label' => 'Use Instructions', 'id' => 'instructions']);
	        		submit_btn('add_bank', 'Add Bank Account');
	        		 ?>
	        	</form>
			</div>
		</div>
		<div class="col-md-4">
			
		</div>
	</div>
	<?php
	global $post_meta;
	add_page_javascript('app/assets/js/page-scripts/submit.js');
	add_page_javascript('app/assets/js/page-scripts/koweb.js');
	add_page_javascript('app/assets/js/page-scripts/js-functions.js');
}