PATH:
home
/
rwabteecom
/
project_11
/
storage
/
framework
/
views
/
Editing: 9487947c539e82fccab43d65b16432fc.php
<?php $__env->startSection("content"); ?> <div class="row"> <div class="col-md-3"> <a href="<?php echo e(route('admin.users.index')); ?>" style="background: #4FC2F8" class="card hoverable card-xl-stretch mb-xl-8"> <div class="card-body text-center"> <img src="<?php echo e(asset('images/users.png')); ?>" style="width: 55px;" alt=""> <div class="text-white fw-bolder fs-1 mb-2 mt-5"> <?php echo e(\App\Models\User::query()->count()); ?> </div> <div class="fw-bolder fs-2 text-white"><?php echo e(__("Users")); ?></div> </div> </a> </div> </div> <div class="row mb-5"> <div class="col-md-7"> <div class="card card-xl-stretch"> <div class="card-header pt-5 justify-content-center"> <h3 class="card-title align-items-start"> <span class="card-label fw-bolder fs-3 mb-1"><?php echo e(__("Users")); ?></span> </h3> </div> <div class="card-body p-0"> <div id="users_chart" style="height: 300px"></div> </div> </div> </div> <div class="col-md-5"> <div class="card h-md-100"> <div class="card-header"> <h3 class="card-title align-items-start flex-column"> <span class="card-label fw-bold text-gray-800"><?php echo e(__("Users Stats")); ?></span> <?php if(\App\Models\User::query()->latest()->first()): ?> <span class="text-gray-500 mt-1 fw-semibold fs-6"><?php echo e(__("Updated")); ?> <?php echo e(\App\Models\User::query()->latest()->first()->updated_at->diffForHumans()); ?></span> <?php endif; ?> </h3> <div class="card-toolbar"> <a href="<?php echo e(route('admin.users.index')); ?>" class="btn btn-sm btn-light"><?php echo e(__("Users")); ?></a> </div> </div> <div class="card-body pb-2"> <?php if(\App\Models\User::query()->count() == 0): ?> <h2><?php echo e(__("No Users Found")); ?></h2> <?php else: ?> <div class="table-responsive"> <table class="table table-row-dashed align-middle gs-0 gy-3 my-0"> <thead> <tr class="fs-7 fw-bold text-gray-500 border-bottom-0"> <th class="p-0 pb-3 min-w-175px text-start"><?php echo e(__("Name")); ?></th> <th class="p-0 pb-3 min-w-100px text-start"><?php echo e(__("Phone")); ?></th> <th class="p-0 pb-3 w-50px text-start"><?php echo e(__("View")); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = \App\Models\User::query()->latest("created_at")->take(6)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <div class="d-flex align-items-center"> <div class="symbol symbol-50px me-3"> <img src="<?php echo e($user->profile_image); ?>" class="" alt=""> </div> <div class="d-flex justify-content-start flex-column"> <a href="#" class="text-gray-800 fw-bold text-hover-primary mb-1 fs-6"><?php echo e($user->name); ?></a> </div> </div> </td> <td class="text-start pe-0"> <?php echo e($user->phone); ?> </td> <td class="text-start"> <a href="<?php echo e(route('admin.users.show', $user->id)); ?>" class="btn btn-sm btn-icon btn-bg-light btn-active-color-primary w-30px h-30px"> <i class="ki-duotone ki-black-<?php echo e(LaravelLocalization::getCurrentLocale() == "ar" ? "left" : "right"); ?> fs-2 text-gray-500"></i> </a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection("scripts"); ?> <script> function Charts(data, months, element) { const a = document.getElementById("kt_charts_widget_1_chart"), o = 350, s = KTUtil.getCssVariableValue("--bs-gray-500"), r = KTUtil.getCssVariableValue("--bs-gray-200"), i = KTUtil.getCssVariableValue("--bs-primary"), l = KTUtil.getCssVariableValue("--bs-gray-300"); var options = { series: [{name: "<?php echo e(__("Counts")); ?>", data: data}], chart: {fontFamily: "inherit", type: "bar", height: o, toolbar: {show: !1}}, plotOptions: {bar: {horizontal: !1, columnWidth: ["30%"], borderRadius: 4}}, legend: {show: !1}, dataLabels: {enabled: !1}, stroke: {show: !0, width: 2, colors: ["transparent"]}, xaxis: { categories: months, axisBorder: {show: !1}, axisTicks: {show: !1}, labels: {style: {colors: s, fontSize: "12px"}} }, yaxis: {labels: {style: {colors: s, fontSize: "12px"}}}, fill: {opacity: 1}, states: { normal: {filter: {type: "none", value: 0}}, hover: {filter: {type: "none", value: 0}}, active: {allowMultipleDataPointsSelection: !1, filter: {type: "none", value: 0}} }, tooltip: { enabled: true, }, colors: [i, l], grid: {borderColor: r, strokeDashArray: 4, yaxis: {lines: {show: !0}}}, }; var chart = new ApexCharts(document.querySelector("#" + element), options); chart.render(); } </script> <script> $(function () { $.ajax({ url: "<?php echo e(route('admin.charts.users')); ?>", method: "GET", beforeSend: function () { }, success: function (response) { Charts(response.data.counts, response.data.months, "users_chart") } }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/rwabtee/project/resources/views/admin/pages/dashboard.blade.php ENDPATH**/ ?>
SAVE
CANCEL