Files
WrenchBoardPromo/app/Views/admin/index.php
T
CHIEFSOFT\ameye be3d5d9f81 promo fix
2024-11-18 10:13:06 -05:00

317 lines
16 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">45%</h4>
<span> <i class="fa fa-square pr-1 text-primary"></i> Job Seekers </span>
</div>
<div class="col">
<h4 class="mb-0">55%</h4>
<span> <i class="fa fa-square pr-1 text-info"></i> Job Providers </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>Redeem Points</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>#<?=$index?></td>
<td>
<p><?=$item["email"]?></p>
</td>
<td><?=$item["firstname"]?></td>
<td><?=$item["lastname"]?></td>
<td>
Initial Task
</td>
<td>
<label class="badge badge-success-inverse mb-0"><?=$item["status"]?></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">
<div class="table-responsive">
<table id="openposition" class="table table-borderless table-striped jobportal-table mb-0">
<tbody class="text-muted">
<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>
<tr>
<td>
<div class="bg-img ml-3">
<img src="/asset/img/browser-logo/envato.png" class="img-fluid" alt="user-7">
</div>
</td>
<td>
<p class="d-block"><strong> Sales associate</strong>
<span class="d-block"> <i class="fa fa-map-marker mr-2"></i> London, UK</span></p>
</td>
<td>
<p> Over 2 month ago
<span class="d-block"> <i class="fa fa-briefcase mr-2"></i> Parttime </span></p>
</td>
<td class="text-info text-right">
80 Days left
</td>
</tr>
<tr>
<td>
<div class="bg-img ml-3">
<img src="/asset/img/browser-logo/invision.png" class="img-fluid" alt="user-7">
</div>
</td>
<td>
<p class="d-block"><strong> Product designer</strong>
<span class="d-block"> <i class="fa fa-map-marker mr-2"></i> Delhi, India</span></p>
</td>
<td>
<p> Over 6 month ago
<span class="d-block"> <i class="fa fa-briefcase mr-2"></i> Parttime </span></p>
</td>
<td class="text-info text-right">
50 Days left
</td>
</tr>
<tr>
<td>
<div class="bg-img ml-3">
<img src="/asset/img/browser-logo/slack.png" class="img-fluid" alt="user-7">
</div>
</td>
<td>
<p class="d-block"><strong> Python engineer</strong>
<span class="d-block"> <i class="fa fa-map-marker mr-2"></i> Tokyo, Japan</span></p>
</td>
<td>
<p> Over 10 month ago
<span class="d-block"> <i class="fa fa-briefcase mr-2"></i> Fulltime </span></p>
</td>
<td class="text-info text-right">
20 Days left
</td>
</tr>
<tr>
<td>
<div class="bg-img ml-3">
<img src="/asset/img/browser-logo/bootstrap.png" class="img-fluid" alt="user-7">
</div>
</td>
<td>
<p class="d-block"><strong> Account executive</strong>
<span class="d-block"> <i class="fa fa-map-marker mr-2"></i> Menlo Park, CA</span></p>
</td>
<td>
<p> Over 4 month ago
<span class="d-block"> <i class="fa fa-briefcase mr-2"></i> Casual </span></p>
</td>
<td class="text-info text-right">
10 Days left
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- end row -->
</div>
<!-- end container-fluid -->
</div>
<!-- end app-main -->
<?= $this->endSection() ?>