<?php $__env->startSection('content'); ?>
    

            <!-- Hero -->
            <div class="content ">
                <?php if(session()->has('success_transfer')): ?>
                    <div class="text-success alert-success" style="font-size:14px;padding:10px;">
                    <?php echo e(session()->get('success_transfer')); ?>

                    </div>
                <?php endif; ?>
                
                 <?php if(session()->has('transfer_session_response')): ?>
                    <div class="text-success alert-success" style="font-size:14px;padding:10px;">
                    <?php echo e(session()->get('transfer_session_response')); ?>

                    </div>
                <?php endif; ?>
   
                
                <div
                    class="d-flex flex-column flex-md-row justify-content-md-between align-items-md-center py-2 text-center text-md-start">
                    <div class="flex-grow-1 mb-1 mb-md-0">
                        <h1 class="h3 fw-bold mb-2">
                            Dashboard
                        </h1>
                        <h2 class="h6 fw-medium fw-medium text-muted mb-0">
                            Welcome back,<a class="fw-semibold"> <?php echo e(Auth::user()->name); ?>  <?php echo e(Auth::user()->lastname); ?> </a>   👋
                        </h2>
                    </div>

                    <div class="mt-3 mt-md-0 ms-md-3 space-x-1">
                        <a class="btn btn-sm btn-alt-secondary space-x-1" >
                            <i class="fa-solid fa-money-bill"></i>
                            <span>Available Balance: <?php echo e($available); ?></span>
                        </a>
                        
                    </div>

                    

                    <div class="mt-3 mt-md-0 ms-md-3 space-x-1">
                        <a class="btn btn-sm btn-alt-secondary space-x-1" >
                            <i class="fa-solid fa-headset"></i>
                            <span>Support PIN: <?php echo e(Auth::user()->support_pin); ?></span>
                        </a>
                        
                    </div>
                
                </div>
            </div>
            <!-- END Hero -->
            

            <!-- Page Content -->
            <div class="content">
                <!-- Overview -->
                
                
                
                <div class="row items-push">
                    <div class="col-sm-6 col-xxl-3">
                        <!-- Pending Orders -->
                        <div class="block block-rounded d-flex flex-column h-100 mb-0">
                            <div
                                class="block-content block-content-full flex-grow-1 d-flex justify-content-between align-items-center">
                                <dl class="mb-0">
                                    <dt class="fs-3 fw-bold"><?php echo e($active_service); ?></dt>
                                    <dd class="fs-sm fw-medium fs-sm fw-medium text-muted mb-0">Active Services</dd>
                                </dl>
                                <div class="item item-rounded-lg bg-body-light">
                                    <i class="far fa-gem fs-3 text-primary"></i>
                                </div>
                            </div>

                          
                           
                        </div>
                        <!-- END Pending Orders -->
                    </div>
                    <div class="col-sm-6 col-xxl-3">
                        <!-- New Customers -->
                        <div class="block block-rounded d-flex flex-column h-100 mb-0">
                            <div
                                class="block-content block-content-full flex-grow-1 d-flex justify-content-between align-items-center">
                                <dl class="mb-0">
                                    <dt class="fs-3 fw-bold"><?php echo e($active_domain); ?></dt>
                                    <dd class="fs-sm fw-medium fs-sm fw-medium text-muted mb-0">Active Domains</dd>
                                </dl>
                                <div class="item item-rounded-lg bg-body-light">
                                    <i class="far fa-solid fa-ethernet fs-3 text-primary"></i>
                                </div>
                            </div>
                           
                        </div>
                        <!-- END New Customers -->
                    </div>
                    <div class="col-sm-6 col-xxl-3">
                        <!-- Messages -->
                        <div class="block block-rounded d-flex flex-column h-100 mb-0">
                            <div
                                class="block-content block-content-full flex-grow-1 d-flex justify-content-between align-items-center">
                                <dl class="mb-0">
                                    <dt class="fw-bold" style="font-size: 1rem!important"><?php echo e($paid); ?></dt>
                                    <dd class="fs-sm fw-medium fs-sm fw-medium text-muted mb-0">Paid Invoices</dd>
                                </dl>
                                <div class="item item-rounded-lg bg-body-light">
                                    <i class="fa fa-solid fa-receipt fs-3 text-primary"></i>
                                </div>
                            </div>
                          
                        </div>
                        <!-- END Messages -->
                    </div>
                    <div class="col-sm-6 col-xxl-3">
                        <!-- Conversion Rate -->
                        <div class="block block-rounded d-flex flex-column h-100 mb-0">
                            <div
                                class="block-content block-content-full flex-grow-1 d-flex justify-content-between align-items-center">
                                <dl class="mb-0">
                                    <dt class="fw-bold" style="font-size: 1rem!important"><?php echo e($unpaid); ?></dt>
                                    <dd class="fs-sm fw-medium fs-sm fw-medium text-muted mb-0">Unpaid Invoices</dd>
                                </dl>
                                <div class="item item-rounded-lg bg-body-light">
                                    <i class="far fa-solid fa-file-invoice fs-3 text-primary"></i>
                                    </div>
                            </div>
                         
                        </div>
                        <!-- END Conversion Rate-->
                    </div>

                </div>
                <!-- END Overview -->
                
                
                <?php if(count($announces) > 0): ?>
           
            <div class="col-md-12">
              <!-- Slider with Avatars -->
              
              <div class="block block-rounded">
                <div class="block-header block-header-default">
                  <h3 class="block-title">Announcements</h3>
                </div>
                <div class="block-content">
                  <div class="js-slider text-center" data-dots="true" data-arrows="true" data-autoplay="true">

                    <?php $__empty_1 = true; $__currentLoopData = $announces; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $an): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <div class="py-3">
                      <div class="mt-2 fw-semibold"><?php echo e($an->title); ?></div>
                      <div class="fs-sm text-muted"><?php echo e($an->message); ?></div>
                    </div>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <?php endif; ?>
                    
                  </div>
                </div>
              </div>
             
              
            </div>
            <?php endif; ?>


                <div class="row">


                    <div class="col-xl-7">
                        <!-- Default Table -->
                        <div class="block block-rounded">
                          <div class="block-header block-header-default">
                            <h3 class="block-title">Account Login History</h3>
                          </div>
                          <div class="block-content">
                            <table class="table table-vcenter">
                              <thead>
                                <tr>
                                  <th class="text-center" style="width: 50px;">#</th>
                                  <th>Date & Time</th>
                                  <th class="d-sm-table-cell" style="width: 15%;">IP</th>
                                  <th class="text-center" style="width: 100px;">Result</th>
                                </tr>
                              </thead>
                              <tbody>
                                <?php $__currentLoopData = $histories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $history): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td >
                                        <?php echo e(++$key); ?>

                                        </td>
                                    <td ><?php echo e($history->date); ?></td>
                                    <td ><a href="https://www.whois.af/?domain=<?php echo e($history->ip_address); ?>" target="_blank"><?php echo e($history->ip_address); ?></a></td>
                                    <td ><?php echo e($history->result); ?></td>
                                </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </tbody>
                            </table>
                          </div>
                        </div>
                        <!-- END Default Table -->
                      </div>


                      
                    <div class="col-xl-5">
                        <!-- Default Table -->
                        <div class="block block-rounded">
                          <div class="block-header block-header-default">
                            <h3 class="block-title">Recent Activities</h3>
                           
                          </div>
                          <div class="block-content">
                           

                            <table class="table table-vcenter">
                                <?php if($last_dates != null &&  $last_dates->change_password_date != '2020-02-03'): ?>
                               <tr>
                                   <td>
                                        <i class="fas fa-lock" style="font-size:17px;"></i>
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                      Password Changed -> Profile
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                       <?php echo e($last_dates->change_password_date); ?>

                                   </td>
                               </tr>
                               <?php endif; ?>

                               <?php if($last_dates != null && $last_dates->forgot_password_date != '2020-02-03'): ?>
                               <tr>
                                   <td>
                                        <i class="fas fa-lock" style="font-size:17px;"></i>
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                      Forgot Password -> Email
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                       <?php echo e($last_dates->forgot_password_date); ?>

                                   </td>
                               </tr>
                               <?php endif; ?>

                               <?php if(auth()->user()->google_date != '0'): ?>
                               <tr>
                                   <td>
                                        <i class="fa-solid fa-shield" style="font-size:17px;"></i>
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                      Two Factor - > Added / Updated 
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                       <?php echo e(auth()->user()->google_date); ?>

                                   </td>
                               </tr>
                               <?php endif; ?>

                               <?php if($last_dates != '' and  $last_dates->profile_update_date != '2020-02-03'): ?>
                               <tr>
                                   <td>
                                         <i class="fas fa-user-circle" style="font-size:17px;"></i>
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                      Profile Updated
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                       <?php echo e($last_dates->profile_update_date); ?>

                                   </td>
                               </tr>
                               <?php endif; ?>


                               <tr>
                                   <td>
                                         <i class="fas fa-sign-in-alt" style="font-size:17px;"></i>
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                     Logged In
                                   </td>
                                   <td style="font-size:10px;font-weight: bold">
                                       <?php echo e(Carbon\Carbon::parse($last_login->date)->format('Y-m-d')); ?>

                                   </td>
                               </tr>
                               


                           </table>
                          </div>
                        </div>
                        <!-- END Default Table -->
                        
                                                <div class="block block-rounded">
                          <div class="block-header block-header-default">
                            <h3 class="block-title">AICT NOC Status</h3>
                           <a href="https://www.aryanict.com/noc-live-status.py?ref=myLEAP" target="_blank">
                          </div>
                          <div class="block-content">

                        <ul class="list-group push">
                            
                        <?php $__empty_1 = true; $__currentLoopData = App\Models\StatusCategory::limit(5)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s_c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <li class="list-group-item d-flex justify-content-between align-items-center fw-medium">
                            <?php echo e($s_c->name); ?>

                            <?php if($s_c->status == 1): ?>
                            <span class="fs-sm fw-semibold d-inline-block py-1 px-3 rounded-pill bg-success-light text-success">Operational</span>
                            <?php elseif($s_c->status == 2): ?>
                            <span class="fs-sm fw-semibold d-inline-block py-1 px-3 rounded-pill bg-danger-light text-danger">Under maintenance</span>
                            <?php elseif($s_c->status == 3): ?>
                            <span class="fs-sm fw-semibold d-inline-block py-1 px-3 rounded-pill bg-danger-light text-danger">Degraded performance</span>
                             <?php elseif($s_c->status == 4): ?>
                            <span class="fs-sm fw-semibold d-inline-block py-1 px-3 rounded-pill bg-danger-light text-danger">Partial outage</span>
                            <?php else: ?>
                            <span class="fs-sm fw-semibold d-inline-block py-1 px-3 rounded-pill bg-danger-light text-danger">Major outage</span>
                            <?php endif; ?>
                        </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <?php endif; ?>
                        
                        
                     
                     
                    
                      

                    </ul>
                     </a>
                      </div>
                      
            
           
                      
                      




                    
                </div>
            </div>
            
            <!-- END Page Content -->
        
<?php $__env->stopSection(); ?>
<?php echo $__env->make('Dashboard.master_page', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/leaparyanict/aict.leap.aryanict.com/resources/views/Dashboard/index.blade.php ENDPATH**/ ?>