Files
WrenchBoardPromo/app/Views/admin/index.php
T
CHIEFSOFT\ameye f60ec96814 redem page
2024-11-19 19:58:08 -05:00

251 lines
12 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?= $this->extend('layouts/adminpage') ?>
<?= $this->section('content') ?>
<!-- begin app-main -->
<div class="app-main" id="main">
<!-- begin container-fluid -->
<div class="container-fluid">
<!-- begin row -->
<div class="row">
<div class="col-md-12 m-b-30">
<!-- begin page title -->
<div class="d-block d-sm-flex flex-nowrap align-items-center">
<div class="page-title mb-2 mb-sm-0">
<h1>My Promotions Dash</h1>
</div>
<div class="ml-auto d-flex align-items-center">
<nav>
<ol class="breadcrumb p-0 m-b-0">
<li class="breadcrumb-item">
<a href="index.html"><i class="ti ti-home"></i></a>
</li>
<li class="breadcrumb-item">
Dashboard
</li>
<li class="breadcrumb-item active text-primary" aria-current="page">Job
Portal</li>
</ol>
</nav>
</div>
</div>
<!-- end page title -->
</div>
</div>
<!-- end row -->
<!-- begin row -->
<div class="row">
<div class="col-lg-6 col-xxl-3 m-b-30">
<div class="card card-statistics h-100 mb-0">
<div class="card-header">
<h4 class="card-title">Activity Stats</h4>
</div>
<div class="card-body pt-0">
<div class="apexchart-wrapper">
<div id="jobportaldemo3"></div>
</div>
<div class="row text-center justify-content-center">
<div class="col ml-3">
<h4 class="mb-0">50%</h4>
<span> <i class="fa fa-square pr-1 text-primary"></i> Started </span>
</div>
<div class="col">
<h4 class="mb-0">50%</h4>
<span> <i class="fa fa-square pr-1 text-info"></i> Completed </span>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-xxl-3 m-b-30">
<div class="card card-statistics h-100 mb-0 widget-income-list">
<div class="card-body d-flex align-itemes-center">
<div class="media align-items-center w-100">
<div class="text-left">
<h3 class="mb-0">Points Earned : <?=$_SESSION['total_users'] ?? 0 ?> </h3>
<span><a href="/redeem">Redeem Points</a></span>
</div>
<div class="img-icon bg-orange ml-auto">
<i class="ti ti-wallet text-white"></i>
</div>
</div>
</div>
<div class="card-body d-flex align-itemes-center">
<div class="media align-items-center w-100">
<div class="text-left">
<h3 class="mb-0"><?=$_SESSION['pending_users'] ?? 0 ?></h3>
<span>Pending Users</span>
</div>
<div class="img-icon bg-pink ml-auto">
<i class="ti ti-user text-white"></i>
</div>
</div>
</div>
<div class="card-body d-flex align-itemes-center">
<div class="media align-items-center w-100">
<div class="text-left">
<h3 class="mb-0"> <?=$_SESSION['new_users'] ?? 0 ?> </h3>
<span>New Users</span>
</div>
<div class="img-icon bg-primary ml-auto">
<i class="ti ti-tag text-white"></i>
</div>
</div>
</div>
<div class="card-body d-flex align-itemes-center">
<div class="media align-items-center w-100">
<div class="text-left">
<h3 class="mb-0"> <?=$_SESSION['active_users'] ?? 0 ?> </h3>
<span>Active Users</span>
</div>
<div class="img-icon bg-info ml-auto">
<i class="ti ti-slice text-white"></i>
</div>
</div>
</div>
</div>
</div>
<div class="col-xxl-6 m-b-30">
<div class="card card-statistics" style="background-color: lightgoldenrodyellow;">
<div class="card-header">
<div class="card-heading"><h4 class="card-title">Add New</h4></div>
</div>
<div class="card-body">
<form id="ref_individual">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="email" maxlength="55" aria-describedby="emailHelp" placeholder="Email">
<!-- <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>-->
</div>
<div class="form-group">
<label for="exampleInputPassword1">Firstname</label>
<input type="text" class="form-control" id="firstname" maxlength="25" placeholder="Firstname">
</div>
<div class="form-group">
<label for="exampleInputPassword1">lastname</label>
<input type="text" class="form-control" id="lastname" max="25" placeholder="Lastname">
</div>
<div class="form-group" style="text-align: right;">
<span id="result_box" style="margin-right: 10px; color: red;"></span>
<button id="action_button" onclick="return addNewRef(1001)" type="submit" class="btn btn-primary">Add User</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xxl-6 m-b-30">
<div class="card card-statistics h-100 mb-0" style="background-color: aliceblue;">
<div class="card-header d-flex align-items-center justify-content-between">
<div class="card-heading">
<h4 class="card-title">Recent Contacts</h4>
</div>
<div class="dropdown">
<a class="p-2 export-btn" href="/promolist" aria-haspopup="true" aria-expanded="false">
Go to my list
</a>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="latestjobs" class="table table-borderless table-striped jobportal-table mb-0">
<thead>
<tr>
<th>No.</th>
<th>Email</th>
<th>Firstname</th>
<th>Lastname</th>
<th>Action</th>
<th>Status</th>
</tr>
</thead>
<tbody class="text-muted">
<?php
$promo_list = $promo_list ?? [];
foreach ($promo_list as $index=>$item){
?>
<tr>
<td>#<?=sprintf("%05d", $index+1)?></td>
<td>
<p><?=$item["email"]?></p>
</td>
<td><?=$item["firstname"]?></td>
<td><?=$item["lastname"]?></td>
<td>
<?=MEMBER_STATUS[ $item["status"] ][1]?>
</td>
<td>
<label class="badge badge-success-inverse mb-0"><?=MEMBER_STATUS[ $item["status"] ][0]?></label>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-xxl-6 m-b-30" >
<div class="card card-statistics h-100 mb-0 jobportal-contant">
<div class="card-header d-flex align-items-center justify-content-between">
<div class="card-heading">
<h4 class="card-title">Recent Actions</h4>
</div>
<div class="dropdown">
</div>
</div>
<div class="card-body" style="min-height: 380px;">
<div class="table-responsive">
<table id="openposition" class="table table-borderless table-striped jobportal-table mb-0">
<tbody class="text-muted">
<?php
$action_list = $action_list ?? [];
foreach ($action_list as $index=>$item){
?>
<tr>
<td>
<div class="bg-img ml-3">
<img src="/asset/img/browser-logo/google.png" class="img-fluid" alt="user-7">
</div>
</td>
<td>
<p class="d-block"><strong> Senior front-end developer</strong>
<span class="d-block"> <i class="fa fa-map-marker mr-2"></i> Montreal, Canada</span></p>
</td>
<td>
<p> Over 1 month ago
<span class="d-block"> <i class="fa fa-briefcase mr-2"></i> Fulltime </span></p>
</td>
<td class="text-info text-right">
45 Days left
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- end row -->
</div>
<!-- end container-fluid -->
</div>
<!-- end app-main -->
<?= $this->endSection() ?>