 
<?php $__env->startSection('page-title', 'Admin-Home Page | LaraStarter'); ?>
<?php $__env->startPush('page-css'); ?>
<style>
  [dir="rtl"] .user-profile .icon {
    margin-right: 0px;
    margin-left: 15px;
  }
  [dir="rtl"] div.dt-container div.dt-search {
    text-align: left;
  }
</style>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('page-content'); ?>

<div class="container-xxl flex-grow-1 container-p-y">
    <div class="row g-6">
        <div class="col-lg-4 col-md-6 col-sm-12">
            <div class="card mb-5">
                <div class="card-body">
                    <div class="card-title d-flex align-items-start">
                        <img width="50" height="50"  src="<?php echo e(asset('public/uploads/business_setting/default-admin.png')); ?>" alt="user-avater" class="rounded">
                        <div class="ps-5">
                            <h5 class="mb-0"><?php echo e(Auth::user()->name); ?></h5>
                            <span><?php echo e(Auth::user()->roles->first()->name ?? 'No Role Assigned'); ?></span>
                        </div>
                    </div>
                    <hr>
                    <a href="<?php echo e(route('user.update-profile')); ?>" class="d-flex align-items-center user-profile mb-3 purple-wrap">
                        <span class="icon purple">
                            <i class="ti tabler-user"></i>
                        </span>
                        <span class="title"><?php echo e(__('Change Profile')); ?></span>
                    </a>
                    <a href="<?php echo e(route('user.update-profile')); ?>#passwordPart" class="d-flex align-items-center user-profile mb-3 success-wrap">
                        <span class="icon success">
                            <i class="ti tabler-key"></i>
                        </span>
                        <span class="title"><?php echo e(__('Change Password')); ?></span>
                    </a>
                    <a href="<?php echo e(route('user.update-profile')); ?>#securityPart" class="d-flex align-items-center user-profile mb-3 blue-wrap">
                        <span class="icon blue">
                            <i class="ti tabler-help"></i>
                        </span>
                        <span class="title"><?php echo e(__('Security Question')); ?></span>
                    </a>
                    <div class="d-flex align-items-center user-profile mb-3 danger-wrap logout-btn cursor-pointer">
                        <span class="icon danger">
                            <i class="ti tabler-logout"></i>
                        </span>
                        <span class="title"><?php echo e(__('Logout')); ?></span>
                    </div>
                </div>
            </div>
            <div class="row g-6">
                <!-- Card Border Shadow - This Week Sales -->
                <div class="col-lg-6 col-md-12">
                  <div class="card card-border-shadow-primary h-100">
                    <div class="card-body">
                      <div class="d-flex align-items-center mb-2">
                        <div class="avatar me-4">
                          <span class="avatar-initial rounded bg-label-primary"
                            ><i class="icon-base ti tabler-shopping-cart icon-28px"></i
                          ></span>
                        </div>
                        <h4 class="mb-0" id="this-week-sales-count">0</h4>
                      </div>
                      <p class="mb-1"><?php echo e(__('Sales')); ?></p>
                      <p class="mb-0">
                        <span class="text-heading fw-medium me-2" id="this-week-sales-change">0%</span>
                        <small class="text-body-secondary"><?php echo e(__('than last week')); ?></small>
                      </p>
                    </div>
                  </div>
                </div>
                <!-- Card Border Shadow - This Week Purchase -->
                <div class="col-lg-6 col-md-12">
                  <div class="card card-border-shadow-warning h-100">
                    <div class="card-body">
                      <div class="d-flex align-items-center mb-2">
                        <div class="avatar me-4">
                          <span class="avatar-initial rounded bg-label-warning"
                            ><i class="icon-base ti tabler-basket icon-28px"></i
                          ></span>
                        </div>
                        <h4 class="mb-0" id="this-week-purchases-count">0</h4>
                      </div>
                      <p class="mb-1"><?php echo e(__('Purchase')); ?></p>
                      <p class="mb-0">
                        <span class="text-heading fw-medium me-2" id="this-week-purchases-change">0%</span>
                        <small class="text-body-secondary"><?php echo e(__('than last week')); ?></small>
                      </p>
                    </div>
                  </div>
                </div>
                <!-- Card Border Shadow - This Week Customer Receive -->
                <div class="col-lg-6 col-md-12">
                  <div class="card card-border-shadow-danger h-100">
                    <div class="card-body">
                      <div class="d-flex align-items-center mb-2">
                        <div class="avatar me-4">
                          <span class="avatar-initial rounded bg-label-danger"
                            ><i class="icon-base ti tabler-cash icon-28px"></i
                          ></span>
                        </div>
                        <h4 class="mb-0" id="this-week-customer-receive-count">0</h4>
                      </div>
                      <p class="mb-1"><?php echo e(__('Customer Receive')); ?></p>
                      <p class="mb-0">
                        <span class="text-heading fw-medium me-2" id="this-week-customer-receive-change">0%</span>
                        <small class="text-body-secondary"><?php echo e(__('than last week')); ?></small>
                      </p>
                    </div>
                  </div>
                </div>
                <!-- Card Border Shadow - This Week Supplier Payment -->
                <div class="col-lg-6 col-md-12">
                  <div class="card card-border-shadow-info h-100">
                    <div class="card-body">
                      <div class="d-flex align-items-center mb-2">
                        <div class="avatar me-4">
                          <span class="avatar-initial rounded bg-label-info"
                            ><i class="icon-base ti tabler-credit-card icon-28px"></i
                          ></span>
                        </div>
                        <h4 class="mb-0" id="this-week-supplier-payment-count">0</h4>
                      </div>
                      <p class="mb-1"><?php echo e(__('Supplier Payment')); ?></p>
                      <p class="mb-0">
                        <span class="text-heading fw-medium me-2" id="this-week-supplier-payment-change">0%</span>
                        <small class="text-body-secondary"><?php echo e(__('than last week')); ?></small>
                      </p>
                    </div>
                  </div>
                </div>
            </div>
        </div>
        <div class="col-lg-8 col-md-6 col-sm-12">
            <div class="card">
                <div class="card-datatable table-responsive pt-0">
                    <table class="datatables-basic table">
                        <thead>
                            <tr>
                                <th><?php echo e(__('SN')); ?></th>
                                <th><?php echo e(__('Sale_No')); ?></th>
                                <th><?php echo e(__('Customer')); ?></th>
                                <th><?php echo e(__('Items')); ?></th>
                                <th><?php echo e(__('Total_Payable')); ?></th>
                                <th><?php echo e(__('Paid_Amount')); ?></th>
                                <th><?php echo e(__('Sale_Date')); ?></th>
                            </tr>
                        </thead>
                        <tbody>
                            <!-- Data will be loaded via AJAX -->
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('page-js'); ?>
<?php echo app('Tighten\Ziggy\BladeRouteGenerator')->generate(); ?>
<script src="<?php echo e(asset('public/backend_assets/js/pages_list_js/list_user_sales.js')); ?>"></script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('backend.backend_layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\xampp-8.2\htdocs\off_pos_laravel\resources\views/backend/home/home.blade.php ENDPATH**/ ?>