<?php $__env->startSection('page-header'); ?>
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-sm-6">
            <h4 class="m-0">Admin</h4>
            </div><!-- /.col -->
            <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
                <li class="breadcrumb-item active">Admin</li>
            </ol>
            </div><!-- /.col -->
        </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>   
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="card card-light">
                <div class="card-header border-transparent">
                  <h3 class="card-title">Latest Institution</h3>
                  <div class="card-tools">
                    <button type="button" class="btn btn-tool" data-card-widget="collapse">
                      <i class="fas fa-minus"></i>
                    </button>
                    <button type="button" class="btn btn-tool" data-card-widget="remove">
                      <i class="fas fa-times"></i>
                    </button>
                  </div>
                </div>
                <!-- /.card-header -->
                <div class="card-body p-0">
                  <div class="table-responsive">
                    <table class="table m-0">
                      <thead>
                      <tr>
                        <th>SL</th>
                        <th>Date</th>
                        <th>Institute Name</th>
                        <th>Head Of Ins.</th>
                        <th>Phone</th>
                        <th>E-mail</th>
                        <th>Total Student</th>
                        <th>Status</th>
                      </tr>
                      </thead>
                      <tbody>   
                        <?php if($latest_institutions->isNotEmpty()): ?> 
                            <?php $__currentLoopData = $latest_institutions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $latest_institute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($loop->iteration); ?></td>
                                <td><?php echo e(date('d/m/y g:i a', strtotime($latest_institute->created_at))); ?></td>
                                <td><?php echo e($latest_institute->name); ?></td>
                                <td><?php echo e($latest_institute->head_of_institution); ?></td>
                                <td><?php echo e($latest_institute->phone ?? "N/A"); ?></td>
                                <td><?php echo e($latest_institute->email ?? "N/A"); ?></td>
                                <td><?php echo e($latest_institute->students->count() ?? 0); ?></td>
                                <td>
                                    <?php if($latest_institute->is_active): ?>
                                        <span class="badge badge-success">Active</span>
                                    <?php else: ?>
                                        <span class="badge badge-danger">Deactive</span>
                                    <?php endif; ?>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>                  
                      </tbody>
                    </table>
                  </div>
                  <!-- /.table-responsive -->
                </div>
                <!-- /.card-body -->
                <!-- /.card-footer -->
              </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.super_admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/spanmmdr/smartqb.info/resources/views/pages/admin/dashboard.blade.php ENDPATH**/ ?>