<div>
    <div class="card-header">
        <div class="d-flex justify-content-between align-items-center">
            <strong><?php echo e($navigationMenu->name); ?></strong>

            <div class="d-flex align-items-center gap-2">
                <div class="input-group position-relative">
                    <select class="form-select" wire:model.live="paginate" id="paginate">
                        <option value="10">10</option>
                        <option value="25">25</option>
                        <option value="50">50</option>
                        <option value="100">100</option>
                        <option value="250">250</option>
                        <option value="500">500</option>
                    </select>
                </div>
            </div>

        </div>
    </div>

    <div class="card-body">
        <div class="example">
            <div class="tab-content rounded-bottom">
                <div class="tab-pane active preview" role="tabpanel" id="preview-1005">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th scope="col">Başlık</th>
                                <th scope="col">Tipi</th>
                                <th scope="col">İşlem</th>
                            </tr>
                        </thead>
                        <tbody wire:sortable="updateOrder">
                            <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr wire:sortable.item="<?php echo e($link->id); ?>" wire:key="item-<?php echo e($link->id); ?>">
                                    <td wire:sortable.handle style="cursor:move;">
                                        <!--[if BLOCK]><![endif]--><?php if($link->type === 2): ?>
                                            <?php echo e($link->page->title); ?> <?php echo e($link->title ? '- '.$link->title : ''); ?>

                                        <?php else: ?>
                                            <?php echo e($link->title); ?>

                                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                                    </td>
                                    <td>
                                        <!--[if BLOCK]><![endif]--><?php if($link->type === 1): ?>
                                            <span class="badge text-bg-primary text-white">URL</span>
                                        <?php elseif($link->type === 2): ?>
                                            <span class="badge text-bg-info text-white">Sayfa</span>
                                        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                                    </td>
                                    <td>
                                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('link.update')): ?>
                                            <a href="<?php echo e(route('admin.navigation.link.edit', ['id' => $navigationMenu->id, 'link' => $link])); ?>" class="btn btn-sm btn-outline-primary">
                                                <span class="cil-pencil"></span>
                                            </a>
                                        <?php endif; ?>

                                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('link.update')): ?>
                                            <button type="button" wire:click="deleteConfirm(<?php echo e($link->id); ?>)" wire:loading.attr="disabled" class="btn btn-sm btn-outline-secondary text-secondary">
                                                <span class="cil-trash"></span>
                                            </button>
                                        <?php endif; ?>

                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="px-4">
        <?php echo e($this->links->links()); ?>

    </div>
</div>
<?php /**PATH /Users/furkanciloglu/Herd/impoholdingpanel/resources/views/livewire/admin/navigation/link/index.blade.php ENDPATH**/ ?>