147 lines
4.9 KiB
PHP
147 lines
4.9 KiB
PHP
@extends('cms.cms-master')
|
|
@section('main_content')
|
|
|
|
<div class="container-fluid">
|
|
<!-- Breadcrumbs-->
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item">
|
|
<a href="{{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 class="card-header">
|
|
<i class="fa fa-area-chart"></i> Area Chart Example</div> --}}
|
|
|
|
{{-- <div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div> --}}
|
|
</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;
|
|
@endphp
|
|
@foreach ($users as $user)
|
|
<tr>
|
|
|
|
<td>{{$user->id}}</td>
|
|
<td><a class="users" href="{{('cms.cms-userInfo' . '/'. $user ->id)}}">{{$user->name}}</a></td>
|
|
@if ($user->role == 6)
|
|
<td>Admin</td>
|
|
@else
|
|
<td>User</td>
|
|
@endif
|
|
<td>{{$user->country}}</td>
|
|
<td>{{$user->created_at}}</td>
|
|
<td><a href="{{url('cms/getUserOrders/' . $user->id)}}">${{ $totalOrders[$counter]}}</a></td>
|
|
@php
|
|
$counter++
|
|
@endphp
|
|
@endforeach
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer small text-muted">Updated yesterday at 11:59 PM</div>
|
|
</div>
|
|
<!-- /.container-fluid-->
|
|
<!-- /.content-wrapper-->
|
|
@endsection
|