
<?php $__env->startSection('title'); ?>
    Admin | All Data
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container-fluid">
        <?php echo $__env->make('back.parts.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <div class="row justify-content-center">
            <div class="col-lg-10">
                <div class="card mb-4">
                    <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                        <div class="col-md-6">
                            <h6 class="m-0 font-weight-bold text-primary">Partners</h6>
                        </div>
                        <div class="col-md-6">
                            <a href="<?php echo e(route('partner.create')); ?>" class="btn btn-primary float-right">Add New</a>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table align-items-center table-flush">
                            <thead class="thead-light">
                            <tr>
                                <th class="text-center col__id">ID</th>
                                <th>Name</th>
                                <th class="text-center">Logo</th>
                                <th class="col__action__body">Action</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $partners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td class="text-center"><?php echo e($item->position); ?></td>
                                    <td><?php echo e($item->name); ?></td>
                                    <td class="text-center">
                                        <?php if(!empty($item->logo)): ?>
                                            <img class="profileImgShow" src="<?php echo e(asset('/partner/'.$item->logo)); ?>">
                                        <?php endif; ?>
                                    </td>
                                    <td class="col__action__body">
                                        <a href="<?php echo e(route('partner.edit', ['id' => $item->id])); ?>"
                                           class="btn btn-info btn-sm">Edit</a>
                                        <a href="<?php echo e(route('partner.destroy', ['id' => $item->id])); ?>"
                                           onclick="return confirm('Are you sure to delete this!')"
                                           class="btn btn-danger btn-sm">Delete</a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/hotelier/public_html/resources/views/back/partner/index.blade.php ENDPATH**/ ?>