147 lines
5.2 KiB
PHP
147 lines
5.2 KiB
PHP
|
<?php $__env->startSection('main_content'); ?>
|
||
|
|
||
|
<div class="container-fluid">
|
||
|
<!-- Breadcrumbs-->
|
||
|
<ol class="breadcrumb">
|
||
|
<li class="breadcrumb-item">
|
||
|
<a href="<?php echo e(url('cms/dashboard')); ?>">Dashboard</a>
|
||
|
</li>
|
||
|
<li class="breadcrumb-item active">My Dashboard</li>
|
||
|
</ol>
|
||
|
<!-- Icon Cards-->
|
||
|
<div class="row">
|
||
|
<div class="col-xl-3 col-sm-6 mb-3">
|
||
|
<div class="card text-white bg-primary o-hidden h-100">
|
||
|
<div class="card-body">
|
||
|
<div class="card-body-icon">
|
||
|
<i class="fa fa-fw fa-comments"></i>
|
||
|
</div>
|
||
|
<div class="mr-5">26 New Messages!</div>
|
||
|
</div>
|
||
|
<a class="card-footer text-white clearfix small z-1" href="#">
|
||
|
<span class="float-left">View Details</span>
|
||
|
<span class="float-right">
|
||
|
<i class="fa fa-angle-right"></i>
|
||
|
</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-xl-3 col-sm-6 mb-3">
|
||
|
<div class="card text-white bg-warning o-hidden h-100">
|
||
|
<div class="card-body">
|
||
|
<div class="card-body-icon">
|
||
|
<i class="fa fa-fw fa-list"></i>
|
||
|
</div>
|
||
|
<div class="mr-5">11 New Tasks!</div>
|
||
|
</div>
|
||
|
<a class="card-footer text-white clearfix small z-1" href="#">
|
||
|
<span class="float-left">View Details</span>
|
||
|
<span class="float-right">
|
||
|
<i class="fa fa-angle-right"></i>
|
||
|
</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-xl-3 col-sm-6 mb-3">
|
||
|
<div class="card text-white bg-success o-hidden h-100">
|
||
|
<div class="card-body">
|
||
|
<div class="card-body-icon">
|
||
|
<i class="fa fa-fw fa-shopping-cart"></i>
|
||
|
</div>
|
||
|
<div class="mr-5">123 New Orders!</div>
|
||
|
</div>
|
||
|
<a class="card-footer text-white clearfix small z-1" href="#">
|
||
|
<span class="float-left">View Details</span>
|
||
|
<span class="float-right">
|
||
|
<i class="fa fa-angle-right"></i>
|
||
|
</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-xl-3 col-sm-6 mb-3">
|
||
|
<div class="card text-white bg-danger o-hidden h-100">
|
||
|
<div class="card-body">
|
||
|
<div class="card-body-icon">
|
||
|
<i class="fa fa-fw fa-support"></i>
|
||
|
</div>
|
||
|
<div class="mr-5">13 New Tickets!</div>
|
||
|
</div>
|
||
|
<a class="card-footer text-white clearfix small z-1" href="#">
|
||
|
<span class="float-left">View Details</span>
|
||
|
<span class="float-right">
|
||
|
<i class="fa fa-angle-right"></i>
|
||
|
</span>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- Area Chart Example-->
|
||
|
<div class="card mb-3">
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<!-- Example DataTables Card-->
|
||
|
<div class="card mb-3">
|
||
|
<div class="card-header">
|
||
|
<i class="fa fa-table"></i> All Users</div>
|
||
|
<div class="card-body">
|
||
|
<div class="table-responsive">
|
||
|
|
||
|
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>ID</th>
|
||
|
<th>Name</th>
|
||
|
<th>Position</th>
|
||
|
<th>State</th>
|
||
|
<th>Start date</th>
|
||
|
<th>Total Orders</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tfoot>
|
||
|
<tr>
|
||
|
<th>ID</th>
|
||
|
<th>Name</th>
|
||
|
<th>Position</th>
|
||
|
<th>State</th>
|
||
|
<th>Start date</th>
|
||
|
<th>Total Orders</th>
|
||
|
</tr>
|
||
|
</tfoot>
|
||
|
<tbody>
|
||
|
<?php
|
||
|
$counter = 0;
|
||
|
?>
|
||
|
<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||
|
<tr>
|
||
|
|
||
|
<td><?php echo e($user->id); ?></td>
|
||
|
<td><a class="users" href="<?php echo e(('cms.cms-userInfo' . '/'. $user ->id)); ?>"><?php echo e($user->name); ?></a></td>
|
||
|
<?php if($user->role == 6): ?>
|
||
|
<td>Admin</td>
|
||
|
<?php else: ?>
|
||
|
<td>User</td>
|
||
|
<?php endif; ?>
|
||
|
<td><?php echo e($user->country); ?></td>
|
||
|
<td><?php echo e($user->created_at); ?></td>
|
||
|
<td><a href="<?php echo e(url('cms/getUserOrders/' . $user->id)); ?>">$<?php echo e($totalOrders[$counter]); ?></a></td>
|
||
|
<?php
|
||
|
$counter++
|
||
|
?>
|
||
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
|
||
|
</div>
|
||
|
<!-- /.container-fluid-->
|
||
|
<!-- /.content-wrapper-->
|
||
|
<?php $__env->stopSection(); ?>
|
||
|
|
||
|
<?php echo $__env->make('cms.cms-master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|