This commit is contained in:
2022-02-18 00:51:47 -05:00
parent ee4b81e348
commit 65e7601bda
2 changed files with 190 additions and 106 deletions
@@ -16,7 +16,7 @@
<meta property="og:url" content="https://www.wrenchboard.com" />
<meta property="og:site_name" content="WrenchBoard" />
<link rel="canonical" href="https://dashboard.wrenchboard.com" />
<link rel="shortcut icon" href="/site3/assets/media/logos/favicon.ico" />
<link rel="shortcut icon" href="/assets/ext/images/favicon.png">
<!--begin::Fonts-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<!--end::Fonts-->
+189 -105
View File
@@ -1,117 +1,201 @@
<!-- Main content -->
<div class="content-wrapper">
<?php include('common/userstrip.php'); ?>
<?php include('common/userstrip.php'); ?>
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<div class="col-xl-12">
<!--begin::Charts Widget 1-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!-- Marketing campaigns -->
<div class="panel panel-flat">
<div class="row">
<div class="col-lg-4">
<span class="label label-flat border-primary text-primary-600"> <h5 class="no-margin">Account Balance : <? echo money_format('%.2n', $current_balance * 0.01); ?></h5></span>
</div>
<div class="col-lg-4">
<span class="label label-flat border-primary text-primary-600"> <h5 class="no-margin ">Escrow Balance :<? echo money_format('%.2n', $escrow_balance * 0.01); ?> </h5> </span>
</div>
<div class="col-lg-4">
<form class="form-horizontal" action="/member/addfund" method='POST'>
<button type="submit" onclick="addfund();" class="btn btn-primary btn-xs btn-block">Add Fund</button>
</form>
</div>
</div>
</div>
<!-- /marketing campaigns -->
<!-- Marketing campaigns -->
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title">Withdraw from Balance [<? echo money_format('%.2n', $current_balance * 0.01); ?>]</h5>
<form class="form-horizontal" action="/member/balance" method='POST'>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<!--begin::Body-->
<div class="card-body">
<div class="tab-content">
<!--begin::Tap pane-->
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<!--begin::Table container-->
<div class="table-responsive">
<div class="row">
<div class="col-lg-4">
<span class="label label-flat border-primary text-primary-600"> <h5 class="no-margin">Account Balance : <? echo money_format('%.2n', $current_balance * 0.01); ?></h5></span>
</div>
<div class="col-lg-4">
<span class="label label-flat border-primary text-primary-600"> <h5 class="no-margin ">Escrow Balance :<? echo money_format('%.2n', $escrow_balance * 0.01); ?> </h5> </span>
</div>
<div class="col-lg-4">
<form class="form-horizontal" action="/member/addfund" method='POST'>
<button type="submit" onclick="addfund();" class="btn btn-primary btn-xs btn-block">Add Fund</button>
</form>
</div>
</div>
</div>
<!--end::Table-->
</div>
<!--end::Tap pane-->
</div>
<script type="text/javascript">
<!--
function getFee(val) {
$.ajax({
url: "/member/fee?amount=" + val
}).done(function (data) {
var fee = 0;
if (parseFloat(data) > 0) {
fee = parseFloat(data);
}
var total = fee + parseFloat(val);
$('#fee').val(fee.toFixed(2));
$('#total').val(total.toFixed(2));
});
}
// -->
</script>
<div class="panel-body">
<div class="row">
</div>
<div class="col-md-10 col-md-offset-1">
<div class="form-group">
<label class="col-lg-3 control-label"> Amount:</label>
<div class="col-lg-9">
<input name ="amount" type="text" class="form-control" placeholder="Amount to withdraw" value="<?php echo $amount; ?>" onKeyUp="this.value = this.value.replace(/[^0-9]/g, '');getFee(this.value);" maxlength='6' onChange="getFee(this.value)">
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">Recipient Acc:[<a href ='/member/recipient' class="label label-info">Add New</a>]</label>
<div class="col-lg-9">
<?php echo $recipient_account_combo; ?>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">Processing Fee:</label>
<div class="col-lg-9">
<input name ="fee" id="fee" type="text" class="form-control" placeholder="Processing fee" value="<?php echo $fee * 0.01; ?>" readonly >
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label"> Total :</label>
<div class="col-lg-9">
<input name ="total" id="total" type="text" class="form-control" placeholder="Total" value="<?php echo $total * 0.01; ?>" readonly >
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label"> Comment/Note :</label>
<div class="col-lg-9">
<input name="comment" type="text" class="form-control" placeholder="Comment" value="<?php echo $comment; ?>">
</div>
</div>
<div class="text-right">
<?php echo $add_error; ?>
<button type="submit" class="btn btn-primary btn-xs">Continue <i class="icon-arrow-right14 position-right"></i></button>
</div>
</div>
</div>
</form>
</div>
<!--end::Body-->
</div>
<!--end::Charts Widget 1-->
</div>
<!-- /marketing campaigns -->
<div class="panel panel-flat">
<div class="panel-heading">
<?php echo $sendmoney_table; ?>
</div>
</div>
</div>
<!--end::Row-->
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<div class="col-xl-12">
<!--begin::Charts Widget 1-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<!--begin::Title-->
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Withdraw from Balance [<? echo money_format('%.2n', $current_balance * 0.01); ?>]</span>
</h3>
<!--end::Title-->
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body">
<div class="tab-content">
<!--begin::Tap pane-->
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<!--begin::Table container-->
<form class="form-horizontal" action="/member/balance" method='POST'>
<div class="row">
<div class="col-md-10 col-md-offset-1">
</div>
</div>
<script type="text/javascript">
<!--
function getFee(val) {
$.ajax({
url: "/member/fee?amount=" + val
}).done(function (data) {
var fee = 0;
if (parseFloat(data) > 0) {
fee = parseFloat(data);
}
var total = fee + parseFloat(val);
$('#fee').val(fee.toFixed(2));
$('#total').val(total.toFixed(2));
});
}
// -->
</script>
<div class="panel-body">
<div class="row">
</div>
<div class="col-md-10 col-md-offset-1">
<div class="form-group">
<label class="col-lg-3 control-label"> Amount:</label>
<div class="col-lg-9">
<input name ="amount" type="text" class="form-control" placeholder="Amount to withdraw" value="<?php echo $amount; ?>" onKeyUp="this.value = this.value.replace(/[^0-9]/g, '');getFee(this.value);" maxlength='6' onChange="getFee(this.value)">
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">Recipient Acc:[<a href ='/member/recipient' class="label label-info">Add New</a>]</label>
<div class="col-lg-9">
<?php echo $recipient_account_combo; ?>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">Processing Fee:</label>
<div class="col-lg-9">
<input name ="fee" id="fee" type="text" class="form-control" placeholder="Processing fee" value="<?php echo $fee * 0.01; ?>" readonly >
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label"> Total :</label>
<div class="col-lg-9">
<input name ="total" id="total" type="text" class="form-control" placeholder="Total" value="<?php echo $total * 0.01; ?>" readonly >
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label"> Comment/Note :</label>
<div class="col-lg-9">
<input name="comment" type="text" class="form-control" placeholder="Comment" value="<?php echo $comment; ?>">
</div>
</div>
<div class="text-right">
<?php echo $add_error; ?>
<button type="submit" class="btn btn-primary btn-xs">Continue <i class="icon-arrow-right14 position-right"></i></button>
</div>
</div>
</div>
</form>
<!--end::Table-->
</div>
<!--end::Tap pane-->
</div>
</div>
<!--end::Body-->
</div>
<!--end::Charts Widget 1-->
</div>
</div>
<!--end::Row-->
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<div class="col-xl-12">
<!--begin::Charts Widget 1-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<!--begin::Title-->
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Recent Activities</span>
</h3>
<!--end::Title-->
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body">
<div class="tab-content">
<!--begin::Tap pane-->
<div class="tab-pane fade show active" id="kt_table_widget_5_tab_1">
<!--begin::Table container-->
<div class="table-responsive">
<!--begin::Table-->
<?php echo $sendmoney_table; ?>
</div>
<!--end::Table-->
</div>
<!--end::Tap pane-->
</div>
</div>
<!--end::Body-->
</div>
<!--end::Charts Widget 1-->
</div>
</div>
<!--end::Row-->