Files
WrenchBoradWeb/www/application/views/users/view_starttopup.php
T
2022-08-08 07:32:05 -04:00

157 lines
6.9 KiB
PHP

<?php include('common/userstrip.php'); ?>
<!--begin::Row-->
<div class="row g-5 g-xl-8">
<!--begin::Col-->
<div class="col-xl-6">
<div class="card mb-5 mb-xl-8">
<!--begin::Card header-->
<div class="card-header border-0 cursor-pointer" role="button" data-bs-toggle="collapse" data-bs-target="#kt_account_profile_details" aria-expanded="true" aria-controls="kt_account_profile_details">
<!--begin::Card title-->
<div class="card-title m-0">
<h3 class="fw-bolder m-0">Confirm Credit with Account Deposit</h3>
</div>
<!--end::Card title-->
</div>
<!--begin::Card header-->
<!--begin::Content-->
<div id="kt_account_settings_profile_details" class="collapse show">
<!--begin::Form-->
<!--begin::Card body-->
<div class="card-body border-top p-9">
<div class="row mb-6">
<!--begin::Label-->
<label class="col-lg-4 col-form-label required fw-bold fs-6">Amount(Naira)</label>
<!--end::Label-->
<!--begin::Col-->
<div class="col-lg-8 fv-row">
<input type="text" readonly style="text-align:right;" class="form-control form-control-lg form-control-solid" value="<?=$amount?>" />
</div>
<!--end::Col-->
</div>
</div>
<!--end::Card body-->
<!--begin::Actions-->
<div class="card-footer d-flex justify-content-end py-6 px-9">
<button type="submit" class="btn btn-sx btn-primary" onclick="makePayment()" id="make_payment">Make Payment</button>
</div>
<!--end::Actions-->
<!--end::Form-->
</div>
<!--end::Content-->
</div>
</div>
<!--end::Col-->
<div class="col-xl-6">
<!--begin::Table Widget 8-->
<div class="card card-xl-stretch mb-5 mb-xl-8">
<!--begin::Header-->
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Recent Activities</span>
<span class="text-muted mt-1 fw-bold fs-7">Activity Report</span>
</h3>
<div class="card-toolbar">
</div>
</div>
<!--end::Header-->
<!--begin::Body-->
<div class="card-body py-3">
<div class="tab-content">
<!--begin::Tap pane-->
<div class="tab-pane fade show active" id="kt_table_widget_8_tab_1">
<!--begin::Table container-->
<div class="table-responsive">
<!--begin::Table-->
<table class="table align-middle gs-0 gy-3">
<!--begin::Table head-->
<thead>
<tr>
<th class="p-0 w-90px">Date</th>
<th class="p-0 min-w-160px">Recipient</th>
<th class="p-0 w-100px">Amount/Fee</th>
<th class="p-0 w-100px">Conf/Status</th>
</tr>
</thead>
<!--end::Table head-->
<!--begin::Table body-->
<tbody>
<?php
//var_dump($sendmoney_table_result);
foreach( $sendmoney_table_result as $row){
?>
<tr>
<td>
<?=$row->date?>
</td>
<td>
<a href="#" class="text-dark fw-bolder text-hover-primary mb-1 fs-6"><?=$row->recitient?></a>
<span class="text-muted fw-bold d-block fs-7"></span>
</td>
<td>
<?=$row->amount?><br><?=$row->fee?>
</td>
<td class="text-end">
<span class="text-dark fw-bolder d-block fs-7"><?=$row->confirmation?></span>
<span class="text-muted fw-bold d-block fs-8"><?=$row->status?></span>
</td>
<td class="text-end">
<a href="#" class="btn btn-sm btn-icon btn-bg-light btn-active-color-primary">
<i class="bi bi-three-dots fs-5"></i>
</a>
</td>
</tr>
<?php
}
?>
</tbody>
<!--end::Table body-->
</table>
</div>
<!--end::Table-->
</div>
<!--end::Tap pane-->
</div>
</div>
<!--end::Body-->
</div>
</div>
</div>
<script src="https://checkout.flutterwave.com/v3.js"></script>
<script type="text/javascript">
<!--
function makePayment() {
FlutterwaveCheckout({
public_key: "<?=$public_key?>",
tx_ref: "<?=$tx_ref?>",
amount: <?=$amount?>,
currency: "<?=$currency?>",
payment_options: "card, banktransfer, ussd",
redirect_url: "<?=$redirect_url?>",
meta: {
consumer_id: <?=$consumer_id?>,
consumer_mac: "<?=$consumer_mac?>",
},
customer: {
email: "<?=$customer_email?>",
phone_number: "<?=$customer_phone_number?>",
name: "<?=$customer_name?>",
},
customizations: {
title: "WrenchBoard Topup",
description: "WrebchBoard Account Topup Payment",
logo: " https://dashboard.wrenchboard.com/assets/ext/images/wrenchboard.png",
},
});
}
// -->
</script>