

<?php $__env->startSection('title', 'partners'); ?>

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

<?php if(session('partner_create_message')): ?>
<div class="alert alert-success mb-2">
    <?php echo e(session('partner_create_message')); ?>

</div>

<?php elseif(session('delete_partner_msg')): ?>
<div class="alert alert-success mb-2">
    <?php echo e(session('delete_partner_msg')); ?>

</div>
<?php endif; ?>

<h1 class="mb-3"><?php echo e(awtTrans('partners')); ?></h1>

<form action="<?php echo e(route('admin.partner.bluck-delete')); ?>" method="post">
    <?php echo csrf_field(); ?>
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h6 class="m-0 font-weight-bold text-primary text-left">
                <button type="submit" style="display: none;" title="<?php echo e(awtTrans('delete')); ?>" class="btn btn-danger bluck-button btn-circle btn-sm">
                    <i class="fas fa-trash"></i>
                </button>
                <a href="<?php echo e(route('admin.partners.create')); ?>" title="<?php echo e(awtTrans('add')); ?>" class="btn btn-primary btn-circle btn-sm">
                    <i class="fas fa-plus"></i>
                </a>
            </h6>
        </div>
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-bordered" id="dataTablepartners" width="100%" cellspacing="0">
                    <thead>
                        <tr>
                            <th><?php echo e(awtTrans('Choose')); ?> </th>
                            <th><?php echo e(awtTrans('رابط')); ?> </th>
                            <th><?php echo e(awtTrans('Photo')); ?> </th>
                            <th><?php echo e(awtTrans('Actions')); ?> </th>
                        </tr>
                    </thead>
                    <tfoot>
                        <tr>
                            <th><?php echo e(awtTrans('Choose')); ?> </th>
                            <th><?php echo e(awtTrans('رابط')); ?> </th>
                            <th><?php echo e(awtTrans('Photo')); ?> </th>
                            <th><?php echo e(awtTrans('Actions')); ?> </th>
                        </tr>
                    </tfoot>
                    <tbody>
                        <?php if(! empty($partners)): ?>
                        <?php $__currentLoopData = $partners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr id="row-<?php echo e($partner->id); ?>">
                            <td><input type="checkbox" name="ids[]" value="<?php echo e($partner->id); ?>" class="from-control bluck-delete"> </td>
                            <td>
                            <a href="<?php echo e($partner->link); ?>"><i class="fa fa-link"></i></a>
                            </td>
                            <td>
                                <img src="<?php echo e($partner->photo); ?>" width="70px" alt="">
                            </td>
                            <td>
                                <a href="<?php echo e(route('admin.partners.destroy', $partner->id)); ?>" data-id="<?php echo e($partner->id); ?>" class="btn btn-danger btn-circle btn-sm item-delete">
                                    <i class="fas fa-trash"></i>
                                </a>
                                <a href="<?php echo e(route('admin.partners.edit', $partner->id)); ?>" class="btn btn-success btn-circle btn-sm">
                                    <i class="fas fa-edit"></i>
                                </a>
                            </td>

                        </tr>


                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</form>

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


<?php $__env->startSection('scripts'); ?>
<script>
    // Call the dataTables jQuery plugin
    $(document).ready(function() {
        $('#dataTablepartners').DataTable({
            'language': {
                'url': "<?php echo e(app()->getLocale() == 'ar' ? 'https://cdn.datatables.net/plug-ins/1.10.12/i18n/Arabic.json' : 'https://cdn.datatables.net/plug-ins/1.10.12/i18n/English.json'); ?>",
            },
        });
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\jaadara\Projects-from-10-2022\ics-back\resources\views/admin/partners/index.blade.php ENDPATH**/ ?>