<?php $__env->startSection('header-script'); ?>
    <?php echo $__env->make('admin.layouts.forms-header-script', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

    <?php $__env->startSection('content'); ?>
        <div class="row">
            <div class="col-sm-12">
                <div class="btn-group pull-right m-t-25">
                    <a  href="<?php echo e(URL::to('admin/partners/create')); ?>" class="btn btn-custom  waves-effect waves-light"> 
                        Create partner  <span class="m-l-5"><i class="fa fa-plus-square" aria-hidden="true"></i></span>
                    </a>
                </div>
                <h4 class="page-title">Parter List</h4>
                <?php $__currentLoopData = ['danger', 'warning', 'success', 'info']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if(Session::has($key)): ?>
                        <p class="alert alert-<?php echo e($key); ?>"><i class="fa fa-info-circle" style="color: #fe6271;"></i> <?php echo e(Session::get($key)); ?></p>
                    <?php endif; ?>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="card-box">
                    <div class="row">
                        <table id="datatable" class="table table-striped dt-responsive nowrap">
                            <thead>
                                <tr>
                                    <th>Sl</th>
                                    <th>Image</th>
                                    <th>Partner Name</th>
                                    <th>Category</th>
                                    <th style="width: 60px;">Action</th>
                                </tr>
                            </thead>

                            <tbody>
                                
                                <?php $i = 0; ?>
                                <?php if(count($partners) > 0): ?>
    
                                <?php $__currentLoopData = $partners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <?php $i+=1; ?>
                                    <th scope="row"><?php echo e($i); ?></th>
                                    <td>
                                        <div>
                                            <img src="<?php echo e(URL::to('public/images/' . $partner->image)); ?>" height="80"
                                                width="60" />
                                            </a>
    
                                        </div>
                                    </td>
                                    <td><?php echo e($partner->title); ?></td>
                                    <td><?php echo e($partner->category); ?></td>
                                    <td style="width: 60px;"> 
                                        <a href="<?php echo e(url('admin/partners')); ?>/<?php echo e($partner->id); ?>/edit" class="btn btn-sm  btn-warning"><i class="fa fa-edit"></i></a>
                                        <a href="<?php echo e(url('admin/partners')); ?>/<?php echo e($partner->id); ?>/delete" class="btn btn-sm  btn-danger"><i class="fa fa-trash"></i></a>
                                    </td> 
    
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php else: ?>
                                <tr>
                                    <td> No Data Found</td>
                                </tr>
                                <?php endif; ?>
                                
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    <?php $__env->stopSection(); ?>

 <?php $__env->startSection('footer-script'); ?>
     <?php echo $__env->make('admin.layouts.form-elements-footer-script', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
 <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>