Fix super dashboard wallet
This commit is contained in:
parent
3961ebd236
commit
15b685e16a
|
@ -205,7 +205,7 @@ class Admin_dash extends CI_Controller
|
|||
$data["commission"] = Money::of(round($row->balance_com, 2), $this->session->userdata('currency_code'), $context)->formatTo('fr_FR');
|
||||
$data["principal"] = Money::of(round($row->balance_princ, 2), $this->session->userdata('currency_code'), $context)->formatTo('fr_FR');
|
||||
$data['wallet_id'] = $row->wallet_id;
|
||||
$data['curreny_code'] = $this->session->userdata('currency_code');
|
||||
$data['currency_code'] = $this->session->userdata('currency_code');
|
||||
|
||||
|
||||
$res = $this->wallet_model->getWalletPassword($id_network);
|
||||
|
|
|
@ -527,7 +527,7 @@ class Hyperviseur_dash extends CI_Controller
|
|||
$data["commission"] = Money::of(round($row->balance_com, 2), $this->session->userdata('currency_code'), $context)->formatTo('fr_FR');
|
||||
$data["principal"] = Money::of(round($row->balance_princ, 2), $this->session->userdata('currency_code'), $context)->formatTo('fr_FR');
|
||||
$data['wallet_id'] = $row->wallet_id;
|
||||
$data['curreny_code'] = $this->session->userdata('currency_code');
|
||||
$data['currency_code'] = $this->session->userdata('currency_code');
|
||||
|
||||
$this->load->view('header_hyp', $data);
|
||||
if ($data['hasWallet']->first_row()->type == 'visa')
|
||||
|
|
|
@ -195,13 +195,7 @@ class Superviseur_dash extends CI_Controller
|
|||
// Wallet
|
||||
public function wallet()
|
||||
{
|
||||
if (!$this->session->userdata('email')) {
|
||||
$this->session->set_flashdata('error', 'log in first');
|
||||
|
||||
$data['alert'] = "ok";
|
||||
$data['message'] = "Login first!";
|
||||
$this->load->view('login', $data);
|
||||
} else {
|
||||
if ($this->isLogged()) {
|
||||
$id_network = $this->session->userdata('network_id');
|
||||
$data["commission"] = "";
|
||||
$data["principal"] = "";
|
||||
|
@ -232,6 +226,7 @@ class Superviseur_dash extends CI_Controller
|
|||
|
||||
//Fetch all transactions of any geolocated agent of the network
|
||||
$data["transactions"] = array();
|
||||
$transactions = [];
|
||||
if ($agents_g) {
|
||||
foreach ($agents_g->result() as $row) {
|
||||
$wallet = $this->wallet_model->getWallet($row->agent_id);
|
||||
|
@ -244,7 +239,7 @@ class Superviseur_dash extends CI_Controller
|
|||
if ($transactions) {
|
||||
foreach ($transactions->result() as $trans) {
|
||||
$trans->agent_id = $row->agent_id; // Add agent id to transaction
|
||||
array_push($data['transactions'], $trans);
|
||||
$data['transactions'][] = $trans;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -257,7 +252,18 @@ class Superviseur_dash extends CI_Controller
|
|||
$data["transactions"] = false;
|
||||
}
|
||||
|
||||
if($data['hasWallet']->first_row()->type == 'ilink_sante') {
|
||||
$nh_config = $this->nano_health_model->getConfig($id_network);
|
||||
$data['nh_config'] = $nh_config ? $nh_config->first_row() : null ;
|
||||
$data['config_id'] = $data['nh_config'] ? $data['nh_config']->id : null ;
|
||||
$data['provider_billing_periods'] = $this->user_model->getEnumValues('nh_networks_configs','provider_billing_period');
|
||||
$data['years_prices_grid'] = $this->nano_health_model->getConfigYearsPricesGrid($data['config_id']);
|
||||
$data['months_prices_grid'] = $this->nano_health_model->getConfigMonthsPricesGrid($data['config_id']);
|
||||
$data['acts'] = $this->nano_health_model->getConfigActs($data['config_id']);
|
||||
$data['provider_classes'] = $this->nano_health_model->getProviderClasses($data['config_id']);
|
||||
}
|
||||
|
||||
$data['country'] = $this->session->userdata('current_pays');
|
||||
$data['currency_code'] = $this->session->userdata('currency_code');
|
||||
$data['alert'] = "";
|
||||
$data['active'] = "wallet";
|
||||
|
@ -275,6 +281,8 @@ class Superviseur_dash extends CI_Controller
|
|||
$this->load->view('gestion_wallet_sup');
|
||||
elseif ($data['hasWallet']->first_row()->type == 'ilink')
|
||||
$this->load->view('gestion_wallet_sup_ilink');
|
||||
elseif ($data['hasWallet']->first_row()->type == 'ilink_sante')
|
||||
$this->load->view('nano_health/super/gestion_wallet');
|
||||
$this->load->view('footer');
|
||||
}
|
||||
|
||||
|
|
|
@ -81,9 +81,11 @@
|
|||
<div class="box-header">
|
||||
<h3 class="box-title"><?php echo $this->lang->line('export_balance_statement') ?></h3>
|
||||
<div class="box-tools">
|
||||
<a class="btn btn-primary" href="<?php echo current_url().('?history=commission_payments')?>">
|
||||
<?php echo $this->lang->line('commission_payments_history'); ?>
|
||||
</a>
|
||||
<?php if ($this->session->userdata('category') != 'super') { ?>
|
||||
<a class="btn btn-primary" href="<?php echo current_url().('?history=commission_payments')?>">
|
||||
<?php echo $this->lang->line('commission_payments_history'); ?>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body" style="overflow-x:auto;">
|
||||
|
@ -111,7 +113,6 @@
|
|||
<?php if ($this->session->userdata('category') != 'super') { ?>
|
||||
<th align='center'>Action</th>
|
||||
<?php } ?>
|
||||
<th><?=$this->lang->line('registration_date')?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -142,7 +143,6 @@
|
|||
</button>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td><?= $row->agent_registration_date?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
@ -249,7 +249,6 @@
|
|||
<script>
|
||||
$(function () {
|
||||
|
||||
anElement = new AutoNumeric('#montant', '', {digitGroupSeparator: ' ', decimalPlaces:'0', minimumValue : '1' , maximumValue: '99999999999999999999999999'});
|
||||
$("#show_hide_password a").on('click', function(event) {
|
||||
event.preventDefault();
|
||||
if($('#show_hide_password input').attr("type") == "text"){
|
||||
|
@ -271,14 +270,14 @@
|
|||
var table = $('#transactions').DataTable({
|
||||
"aaSorting": [[0, "asc"]],
|
||||
"columnDefs": [
|
||||
{
|
||||
targets: [8],
|
||||
render: $.fn.dataTable.render.moment('YYYY-MM-DD HH:mm:ss', 'D MMMM YYYY HH:mm:ss', format),
|
||||
},
|
||||
{
|
||||
"targets": [8],
|
||||
"visible": false
|
||||
}
|
||||
// {
|
||||
// targets: [8],
|
||||
// render: $.fn.dataTable.render.moment('YYYY-MM-DD HH:mm:ss', 'D MMMM YYYY HH:mm:ss', format),
|
||||
// },
|
||||
// {
|
||||
// "targets": [8],
|
||||
// "visible": false
|
||||
// }
|
||||
],
|
||||
dom: 'Bfrtip',
|
||||
"buttons": [
|
||||
|
@ -381,9 +380,12 @@
|
|||
});
|
||||
|
||||
var id_wallet_agent = null;
|
||||
var anElement = null;
|
||||
|
||||
$('.payCommissionBtn').click(function () {
|
||||
id_wallet_agent = $(this).data('id_wallet_agent');
|
||||
anElement = new AutoNumeric('#montant', '', {digitGroupSeparator: ' ', decimalPlaces:'0', minimumValue : '1' , maximumValue: '99999999999999999999999999'});
|
||||
|
||||
})
|
||||
|
||||
$('#resetPassword').click(function () {
|
||||
|
@ -391,7 +393,7 @@
|
|||
const network = $(this).data('network');
|
||||
const country = $(this).data('country');
|
||||
const email = $(this).data('email');
|
||||
let button = $(this)
|
||||
let button = $(this);
|
||||
button.prop("disabled",true);
|
||||
$.ajax({
|
||||
url: '<?php echo base_url('Hyperviseur_dash/resetWalletPassword')?>',
|
||||
|
|
|
@ -134,42 +134,44 @@
|
|||
</a>
|
||||
|
||||
</li>
|
||||
<li class="<?= "treeview " . ((strpos($active, "demandes_credits") !== false) ? "active menu-open" : "") ?>"
|
||||
style="height: auto;">
|
||||
<a href="#">
|
||||
<i class="fa fa-users"></i>
|
||||
<span><?= $this->lang->line('Demandes de crédits'); ?></span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu"
|
||||
style="<?= (strpos($active, "demandes_credits") !== false) ? "" : "display: none;" ?>">
|
||||
<li class="<?php if ($active == "demandes_credits_entrantes") {
|
||||
echo "active ";
|
||||
} ?>">
|
||||
<a href="<?= base_url('Hyperviseur_dash/getDemandes') ?>">
|
||||
<i class="fa fa-users"></i> <span><?= $this->lang->line('Demandes de crédits'); ?></span>
|
||||
</a>
|
||||
<?php if($hasWallet->first_row()->type != 'ilink_sante') { ?>
|
||||
<li class="<?= "treeview " . ((strpos($active, "demandes_credits") !== false) ? "active menu-open" : "") ?>"
|
||||
style="height: auto;">
|
||||
<a href="#">
|
||||
<i class="fa fa-users"></i>
|
||||
<span><?= $this->lang->line('Demandes de crédits'); ?></span>
|
||||
<span class="pull-right-container">
|
||||
<i class="fa fa-angle-left pull-right"></i>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="treeview-menu"
|
||||
style="<?= (strpos($active, "demandes_credits") !== false) ? "" : "display: none;" ?>">
|
||||
<li class="<?php if ($active == "demandes_credits_entrantes") {
|
||||
echo "active ";
|
||||
} ?>">
|
||||
<a href="<?= base_url('Hyperviseur_dash/getDemandes') ?>">
|
||||
<i class="fa fa-users"></i> <span><?= $this->lang->line('Demandes de crédits'); ?></span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li class="<?php if ($active == "demandes_credits_annulation") {
|
||||
echo "active ";
|
||||
} ?>">
|
||||
<a href="<?= base_url('Hyperviseur_dash/demandsCancellation') ?>"><i
|
||||
class="fa fa-undo"></i><?= $this->lang->line('cancellation'); ?>
|
||||
</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</li>
|
||||
<li class="<?php if ($active == "demandes_credits_annulation") {
|
||||
echo "active ";
|
||||
} ?>">
|
||||
<a href="<?= base_url('Hyperviseur_dash/demandsCancellation') ?>"><i
|
||||
class="fa fa-undo"></i><?= $this->lang->line('cancellation'); ?>
|
||||
</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="<?php if ($active == "demandesAd") {
|
||||
echo "active ";
|
||||
} ?>">
|
||||
<a href="<?= base_url('Hyperviseur_dash/getDemandesAd') ?>">
|
||||
<i class="fa fa-user-secret"></i>
|
||||
<span><?= $this->lang->line('Demandes adhésion'); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="<?php if ($active == "demandesAd") {
|
||||
echo "active ";
|
||||
} ?>">
|
||||
<a href="<?= base_url('Hyperviseur_dash/getDemandesAd') ?>">
|
||||
<i class="fa fa-user-secret"></i>
|
||||
<span><?= $this->lang->line('Demandes adhésion'); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($hasWallet) {?>
|
||||
<li class="<?= "treeview " . ((strpos($active, "wallet_") !== false) ? "active menu-open" : "") ?>"
|
||||
style="height: auto;">
|
||||
|
|
|
@ -118,6 +118,7 @@
|
|||
</a>
|
||||
</li>
|
||||
</li>
|
||||
<?php if($hasWallet->first_row()->type != 'ilink_sante') { ?>
|
||||
<li class="<?= "treeview " . ((strpos($active, "demandes_credits") !== false) ? "active menu-open" : "") ?>"
|
||||
style="height: auto;">
|
||||
<a href="#">
|
||||
|
@ -150,6 +151,7 @@
|
|||
<?php //echo $this->lang->line('Demandes adhésion'); ?><!--</span>-->
|
||||
<!-- </a>-->
|
||||
<!-- </li>-->
|
||||
<?php } ?>
|
||||
<?php if ($hasWallet) {
|
||||
?>
|
||||
<li class="<?php if ($active == "wallet") {
|
||||
|
|
|
@ -287,8 +287,8 @@ $careRequests = [];
|
|||
foreach($months_prices_grid->result() as $i => $row) { ?>
|
||||
<tr>
|
||||
<td><?= $row->number_of_months ?></td>
|
||||
<td><?= Money::of(round($row->min_amount, 2), $curreny_code, $context)->formatTo('fr_FR'); ?></td>
|
||||
<td><?= Money::of(round($row->max_insurance_coverage_amount, 2), $curreny_code, $context)->formatTo('fr_FR'); ?></td>
|
||||
<td><?= Money::of(round($row->min_amount, 2), $currency_code, $context)->formatTo('fr_FR'); ?></td>
|
||||
<td><?= Money::of(round($row->max_insurance_coverage_amount, 2), $currency_code, $context)->formatTo('fr_FR'); ?></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
|
|
|
@ -0,0 +1,477 @@
|
|||
<link rel="stylesheet"
|
||||
href="<?= base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?php echo base_url('bower_components/toastr/toastr.css') ?>">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round|Open+Sans">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="<?= base_url('dist/css/custom/levels-table.css') ?>">
|
||||
|
||||
<?php
|
||||
use Brick\Money\Money;
|
||||
$context = new \Brick\Money\Context\AutoContext();
|
||||
|
||||
$month = time();
|
||||
$months[] = convertDate(date("M"));
|
||||
$label_months [] = date("M") . " " . date("Y");
|
||||
$years[] = date("Y");
|
||||
for ($i = 1; $i <= 11; $i++) {
|
||||
$month = strtotime('last month', $month);
|
||||
$months [] = convertDate(date("M", $month));
|
||||
$years[] = date("Y", $month);
|
||||
$label_months [] = date("M", $month) . " " . date("Y", $month);
|
||||
}
|
||||
|
||||
/**
|
||||
** Liste des souscriptions
|
||||
**/
|
||||
$date = date("Y");
|
||||
$insuranceSubcriptions =array();
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
$monthQuery = $this->db->query("SELECT id FROM nh_insurances_subscriptions
|
||||
WHERE MONTH(created_at) = '".$months[$i-1]."' AND YEAR(created_at) = '".$years[$i-1]."'
|
||||
AND network_id ='".$this->session->userdata('network_id')."'");
|
||||
array_push($insuranceSubcriptions, $monthQuery->num_rows());
|
||||
}
|
||||
|
||||
$careRequests = [];
|
||||
|
||||
//if ($transactions != false) {
|
||||
// $transac = $transactions->num_rows();
|
||||
// $array_transac = array();
|
||||
// $num = 0;
|
||||
// if ($transac > 0) {
|
||||
// foreach ($transactions->result() as $row) {
|
||||
// $num++;
|
||||
// $array_transac[] = $row->type_transac;
|
||||
// }
|
||||
// $vals_transac = array_count_values($array_transac);
|
||||
// $pieChart = array();
|
||||
// foreach (array_keys($vals_transac) as $paramName) {
|
||||
// $color = dechex(rand(0x000000, 0xFFFFFF));
|
||||
// $trash = array("value" => $vals_transac[$paramName],
|
||||
// "color" => "#" . $color,
|
||||
// "highlight" => "#" . $color,
|
||||
// "label" => $paramName);
|
||||
//
|
||||
// $pieChart[] = $trash;
|
||||
// }
|
||||
// }
|
||||
//} else {
|
||||
$pieChart = array();
|
||||
//}
|
||||
|
||||
?>
|
||||
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<?= $this->lang->line('Gestion des wallets'). ' '. $network .' - '.$country; ?>
|
||||
</h1>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-aqua">
|
||||
<div class="inner">
|
||||
<h3><?= $principal ?></h3>
|
||||
<p><?= $this->lang->line('Solde Principal') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-cash"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-xs-6">
|
||||
<div class="small-box bg-green">
|
||||
<div class="inner">
|
||||
<h3><?= $commission; ?></h3>
|
||||
<p><?= $this->lang->line('Solde Commission') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-cash"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row centered">
|
||||
<div class="col-lg-3 col-xs-3">
|
||||
<div class="small-box bg-red-active">
|
||||
<div class="inner">
|
||||
<h3><?= $this->lang->line($nh_config->provider_billing_period ?? ''); ?></h3>
|
||||
<p><?= $this->lang->line('provider_billing_period') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-ios-timer"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-3 col-xs-3">
|
||||
<div class="small-box bg-orange">
|
||||
<div class="inner">
|
||||
<h3><?= $this->lang->line($nh_config->family_coverage_sharing ? 'Oui' : 'Non'); ?></h3>
|
||||
<p><?= $this->lang->line('family_coverage_sharing') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-group"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-aqua-active">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->max_number_of_beneficiaries ?? ''; ?></h3>
|
||||
<p><?= $this->lang->line('max_number_of_beneficiaries') ?> </p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-sort-numeric-desc"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-aqua-active">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->age_limit_of_insured_and_spouse ?? ''; ?></h3>
|
||||
<p><?= $this->lang->line('age_limit_of_insured_and_spouse') ?> </p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-android-calendar"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-aqua-active">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->age_limit_of_child_beneficiary ?? ''; ?></h3>
|
||||
<p><?= $this->lang->line('age_limit_of_child_beneficiary') ?> </p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-android-calendar"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-green-active">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->current_affection_percentage_insurer ?? ''; ?><sup style="font-size: 20px">%</sup></h3>
|
||||
<p><?= $this->lang->line('current_affection').' : '.$this->lang->line('percentage_insurer') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-green-active">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->current_affection_percentage_insured ?? ''; ?><sup style="font-size: 20px">%</sup></h3>
|
||||
<p><?= $this->lang->line('current_affection').' : '.$this->lang->line('percentage_insured') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-light-blue-active">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->long_term_affection_percentage_insurer ?? ''; ?><sup style="font-size: 20px">%</sup></h3>
|
||||
<p><?= $this->lang->line('long_term_affection').' : '.$this->lang->line('percentage_insurer') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-light-blue-active">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->long_term_affection_percentage_insured ?? ''; ?><sup style="font-size: 20px">%</sup></h3>
|
||||
<p><?= $this->lang->line('long_term_affection').' : '.$this->lang->line('percentage_insured') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-aqua">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->exoneration_percentage_insurer ?? ''; ?><sup style="font-size: 20px">%</sup></h3>
|
||||
<p><?= $this->lang->line('exoneration').' : '.$this->lang->line('percentage_insurer') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 col-xs-6">
|
||||
<div class="small-box bg-aqua">
|
||||
<div class="inner">
|
||||
<h3><?= $nh_config->exoneration_percentage_insured ?? ''; ?><sup style="font-size: 20px">%</sup></h3>
|
||||
<p><?= $this->lang->line('exoneration').' : '.$this->lang->line('percentage_insured') ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-pie-graph"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row centered">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?= $this->lang->line('years_price_grid') ?></h3>
|
||||
</div>
|
||||
<div class="box-body" style="overflow-x:auto;">
|
||||
<table class="table table-bordered" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20"><?= $this->lang->line('min_age')?></th>
|
||||
<th width="20"><?= $this->lang->line('max_age') ?> </th>
|
||||
<th><?= $this->lang->line('markup_percentage') ; ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($years_prices_grid)){
|
||||
foreach($years_prices_grid->result() as $i => $row) { ?>
|
||||
<tr>
|
||||
<td><?= $row->min_age ?></td>
|
||||
<td><?= $row->max_age ?></td>
|
||||
<td><?= $row->markup_percentage.'%' ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?= $this->lang->line('months_price_grid') ?></h3>
|
||||
</div>
|
||||
<div class="box-body" style="overflow-x:auto;">
|
||||
<table class="table table-bordered" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="80"><?= $this->lang->line('number_of_months') ?> </th>
|
||||
<th><?= $this->lang->line('min_amount') ?> </th>
|
||||
<th width="180"><?= $this->lang->line('max_insurance_coverage_amount') ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($months_prices_grid)){
|
||||
foreach($months_prices_grid->result() as $i => $row) { ?>
|
||||
<tr>
|
||||
<td><?= $row->number_of_months ?></td>
|
||||
<td><?= Money::of(round($row->min_amount, 2), $currency_code, $context)->formatTo('fr_FR'); ?></td>
|
||||
<td><?= Money::of(round($row->max_insurance_coverage_amount, 2), $currency_code, $context)->formatTo('fr_FR'); ?></td>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">
|
||||
<?= $this->lang->line('subscriptions_of_the_last_12_months'); ?></h3>
|
||||
<div class="box-tools">
|
||||
<a class="btn btn-primary" href="<?= current_url().('?history=insurance-subscriptions')?>">
|
||||
<?= $this->lang->line('subscriptions_historic'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="chart" id="chart">
|
||||
<canvas id="barChart" style="height:230px"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-7">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?= $this->lang->line('list_of_acts') ?></h3>
|
||||
<div class="box-tools">
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body" style="overflow-x:auto;">
|
||||
<table id="example1" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php
|
||||
echo "<th width='5'>#</th>
|
||||
<th>Code</th>
|
||||
<th>".$this->lang->line('Nom')."</th>
|
||||
<th>".$this->lang->line('billing_type')."</th>
|
||||
<th>".$this->lang->line('authorization_type')."</th>
|
||||
";
|
||||
?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($acts)){
|
||||
foreach($acts->result() as $i => $row) { ?>
|
||||
<tr>
|
||||
<td><?= $i+1 ?></td>
|
||||
<td><?= $row->code ?></td>
|
||||
<td><?= $row->name ?></td>
|
||||
<td><?= $this->lang->line($row->billing_type); ?></td>
|
||||
<td><?= $this->lang->line($row->authorization_type); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title"><?= $this->lang->line('provider_classes') ?></h3>
|
||||
<div class="box-tools">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body" style="overflow-x:auto;">
|
||||
<table id="provider_classes" class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<?php
|
||||
echo "<th width='5'>#</th>
|
||||
<th>".$this->lang->line('Nom')."</th>
|
||||
";
|
||||
?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(isset($provider_classes)){
|
||||
foreach($provider_classes->result() as $i => $row) { ?>
|
||||
<tr>
|
||||
<td><?= $i+1 ?></td>
|
||||
<td><?= $row->name ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('include/loader') ?>
|
||||
</section>
|
||||
</div>
|
||||
<!-- jQuery 3 -->
|
||||
<script src="<?= base_url('bower_components/jquery/dist/jquery.min.js') ?>"></script>
|
||||
<!-- Bootstrap 3.3.7 -->
|
||||
<script src="<?= base_url('bower_components/bootstrap/dist/js/bootstrap.min.js') ?>"></script>
|
||||
<!-- DataTables -->
|
||||
<script src="<?= base_url('bower_components/datatables.net/js/jquery.dataTables.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js') ?>"></script>
|
||||
<!-- Slimscroll -->
|
||||
<script src="<?= base_url('bower_components/jquery-slimscroll/jquery.slimscroll.min.js') ?>"></script>
|
||||
<!-- FastClick -->
|
||||
<script src="<?= base_url('bower_components/fastclick/lib/fastclick.js') ?>"></script>
|
||||
<!-- AdminLTE App -->
|
||||
<script src="<?= base_url('dist/js/adminlte.min.js') ?>"></script>
|
||||
<!-- AdminLTE for demo purposes -->
|
||||
<script src="<?= base_url('dist/js/demo.js') ?>"></script>
|
||||
|
||||
<script src="<?= base_url('bower_components/moment/min/moment.min.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/bootstrap-daterangepicker/daterangepicker.js') ?>"></script>
|
||||
<script
|
||||
src="<?= base_url('bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js') ?>"></script>
|
||||
<scriptf
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></scriptf>
|
||||
<!-- ChartJS -->
|
||||
<script src="<?= base_url('bower_components/chart.js/Chart.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/toastr/toastr.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/sweetalert2.js') ?>"></script>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$('#example1').DataTable();
|
||||
$('#provider_classes').DataTable();
|
||||
|
||||
})
|
||||
</script>
|
||||
<script>
|
||||
|
||||
var areaChartData = {
|
||||
labels : <?php echo json_encode($label_months) ?>,
|
||||
datasets: [
|
||||
{
|
||||
label : "<?= $this->lang->line('subscriptions') ?>",
|
||||
fillColor : 'rgba(255, 162, 0, 1)',
|
||||
strokeColor : 'rgba(255, 162, 0, 1)',
|
||||
pointColor : 'rgba(255, 162, 0, 1)',
|
||||
pointStrokeColor : '#ffa200',
|
||||
pointHighlightFill : '#fff',
|
||||
pointHighlightStroke: 'rgba(220,220,220,1)',
|
||||
data: <?php echo json_encode($insuranceSubcriptions) ?>
|
||||
},
|
||||
{
|
||||
label : "<?= $this->lang->line('care_requests') ?>",
|
||||
fillColor : 'rgba(0, 187, 255, 1)',
|
||||
strokeColor : 'rgba(0, 187, 255, 1)',
|
||||
pointColor : '#00bbff',
|
||||
pointStrokeColor : 'rgba(0, 187, 255, 1)',
|
||||
pointHighlightFill : '#fff',
|
||||
pointHighlightStroke: 'rgba(0, 187, 255, 1)',
|
||||
data : <?php echo json_encode($careRequests) ?>
|
||||
}
|
||||
]
|
||||
};
|
||||
</script>
|
||||
|
||||
<script>
|
||||
toastr.options.closeButton = true;
|
||||
toastr.options.closeMethod = 'fadeOut';
|
||||
toastr.options.closeDuration = 5000;
|
||||
toastr.options.closeEasing = 'swing';
|
||||
|
||||
let config_id = "<?=$config_id?>";
|
||||
var selectedActId = null;
|
||||
var selectedClassId = null;
|
||||
|
||||
// Init checkbox
|
||||
$('input[name=family_coverage_sharing]').prop("checked", <?= $nh_config->family_coverage_sharing ?>);
|
||||
|
||||
</script>
|
||||
<!-- Page script -->
|
||||
<script src="<?= base_url('dist/js/custom.js') ?>"></script>
|
Loading…
Reference in New Issue