<?= $this->extend('admin/layout/default') ?>
<?= $this->section('content') ?>
<div class="content-header">
  <div class="container-fluid">
    <div class="row mb-2">
      <div class="col-sm-6"><h1 class="m-0 text-dark">Dashboard</h1></div>
      <div class="col-sm-6">
        <ol class="breadcrumb float-sm-right">
          <li class="breadcrumb-item"><a href="<?= url('/') ?>">Home</a></li>
          <li class="breadcrumb-item active">Dashboard</li>
        </ol>
      </div>
    </div>
  </div>
</div>
<section class="content">
  <div class="container-fluid">
    <div class="row">
      <?php if (hasPermissions('shops_list')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('shops') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-store"></i></div>
              <div>Shops</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('locations_manage')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('cities') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-city"></i></div>
              <div>City Mgmt</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('shop_products_manage') || hasPermissions('shop_products_view')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('rewarderProducts') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-box"></i></div>
              <div>Products</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('shop_services_manage')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('rewarderServices') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-concierge-bell"></i></div>
              <div>Services</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('shop_discounts_manage')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('rewarderDiscounts') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-percent"></i></div>
              <div>Discounts</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('shop_rewards_manage')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('rewarderRewardRules') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-star"></i></div>
              <div>Reward Rules</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('shop_orders_manage')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('rewarderOrders') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-receipt"></i></div>
              <div>Orders</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('reports_view')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('reports') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-chart-bar"></i></div>
              <div>Reports</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('users_list')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('users') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-users"></i></div>
              <div>Users</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('company_settings')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('settings/company') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-cog"></i></div>
              <div>Settings</div>
            </div>
          </a>
        </div>
      <?php endif ?>
      <?php if (hasPermissions('backup_db')): ?>
        <div class="col-lg-3 col-md-4 col-sm-6 mb-3">
          <a href="<?= url('backup') ?>" class="card text-center">
            <div class="card-body">
              <div class="mb-2" style="font-size:32px;color:#0b74ff;"><i class="fas fa-database"></i></div>
              <div>Backup</div>
            </div>
          </a>
        </div>
      <?php endif ?>
    </div>
  </div>
</section>
<?= $this->endSection() ?>
