123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- @extends('app.my-account.layout-lite')
- @section('page')
- <div class="px-3">
- <div class="px-3 d-flex align-items-baseline border-bottom py-2 mb-3 m-neg-3 bg-light">
- <h2 class="font-size-16 text-secondary fw-bold m-0">Dashboard</h2>
- </div>
- <div class="row">
- <div class="col-lg-6">
- <h2 class="font-size-14 fw-bold mb-2">Overall Stats</h2>
- <table class="table table-sm table-bordered dashboard-stats-table mb-4">
- <tbody>
- <tr>
- <?php $c = \App\Models\User::count(); ?>
- <th class="px-2 bg-light fw-bold text-nowrap min-width-70px">
- {{ $c }}
- </th>
- <th class="pl-2 w-100">
- Client{{$c === 1 ? '' : 's'}}
- </th>
- </tr>
- <tr>
- <?php $c = \App\Models\StoreOrder::count(); ?>
- <th class="px-2 bg-light fw-bold text-nowrap">{{$c}}</th>
- <th class="pl-2">
- Order{{$c === 1 ? '' : 's'}}
- </th>
- </tr>
- <tr>
- <th class="px-2 bg-light fw-bold text-nowrap">{{displayAmount('$', $ordersTotal)}}</th>
- <th class="pl-2">
- Order Value
- </th>
- </tr>
- </tbody>
- </table>
- <h2 class="font-size-14 fw-bold mb-2">Action Pending</h2>
- <table class="table table-sm table-bordered dashboard-stats-table">
- <tbody>
- <tr>
- <?php $c = \App\Models\User::whereRaw("(app_user.id NOT IN (SELECT user_id FROM store_order))")->count(); ?>
- <th class="px-2 bg-light fw-bold text-nowrap min-width-70px">
- {{ $c }}
- </th>
- <th class="pl-2 w-100">
- <a href="{{route('admin.report', 'new-orders-pending-processing')}}">New order{{$c === 1 ? '' : 's'}} pending processing</a>
- </th>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- @endsection
|