
<div class="row">
    <div class="col-lg-8">
        <?php $this->load->view('admin/staff/widgets/monthly-payout-graph'); ?>
    </div>
    <div class="col-lg-4">
        <div class="card feed-card card-border-none">
            <div class="card-body py-0">
                <div class="row">
                    <div class="col-4 bg-primary border-feed">
                        <i class="material-icons-two-tone d-block f-46">account_balance_wallet</i>
                    </div>
                    <div class="col-8">
                        <div class="p-t-25 p-b-25">
                            <h2 class="f-w-400 m-b-10">
                                <?php
                                  $this->db->select_sum('salary');
                                  $result = $this->db->get('kns1_staff')->row();
                                  echo amount_format_pakistani($result->salary);
                                ?>
                            </h2>
                            <p class="text-muted m-0">Monthly <span class="text-primary f-w-400">Payout</span></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="card feed-card card-border-none">
            <div class="card-body py-0">
                <div class="row">
                    <div class="col-4 bg-info border-feed">
                        <i class="material-icons-two-tone d-block f-46">account_circle</i>
                    </div>
                    <div class="col-8">
                        <div class="p-t-25 p-b-25">
                            <h2 class="f-w-400 m-b-10">
                                <?php echo $this->db->where('staff_status','1')->count_all_results('kns1_staff');?>  
                            </h2>
                            <p class="text-muted m-0">Staff <span class="text-info f-w-400">Members</span></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="card prod-p-card bg-primary" 
             data-bs-toggle="modal" 
             data-bs-target="#add_staff-modal" 
             style="cursor:pointer;">
          <div class="card-body">
            <div class="row align-items-center m-b-0">
              <div class="col">
                <h5 class="m-b-0 text-white">Add Staff Member</h5>
              </div>
              <div class="col-auto"><i class="material-icons-two-tone text-white">account_circle</i></div>
            </div>
          </div>
        </div>
        <div class="card prod-p-card bg-info" 
             data-bs-toggle="modal" 
             data-bs-target="#salary_withdrawal_modal" 
             style="cursor:pointer;">
          <div class="card-body">
            <div class="row align-items-center m-b-0">
              <div class="col">
                <h5 class="m-b-0 text-white">Salary Payout</h5>
              </div>
              <div class="col-auto"><i class="material-icons-two-tone text-white">account_balance_wallet</i></div>
            </div>
          </div>
        </div>
    </div>
</div>


<div class="row">
    <div class="col-md-12">

<div class="card">
            <div class="card-body">
                <?php $this->load->view('admin/staff/widgets/staff-table'); ?>
            </div>
        </div>
        
    </div>


            

 
</div>  









<?php $this->load->view('admin/layout/form-status-notification'); ?> 
<?php $this->load->view('admin/layout/delete-confirmation-modal'); ?>
<?php $this->load->view('admin/staff/widgets/add-staff-modal'); ?>
<?php $this->load->view('admin/staff/widgets/salary-withdrawal-modal'); ?>