
<div>
    <div style="display: flex; justify-content: end; align-items: center; gap: 10px; margin-bottom: 10px;">
        Düzenlenen diller:
        <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <a href="#" wire:click.prevent="changeLanguage('<?php echo e($language->short); ?>')" wire:key="lang-<?php echo e($language->id); ?>" class="btn btn-sm <?php echo e($selectedLanguage == $language->short ? 'btn-primary' : 'btn-outline-primary'); ?>">
                <?php echo e(strtoupper($language->short)); ?>

            </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
    </div>

    <form>
        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="title">Başlık <!--[if BLOCK]><![endif]--><?php if($type != 2): ?>*<?php endif; ?><!--[if ENDBLOCK]><![endif]--></label>
            <div class="col-sm-10">
                <input class="form-control" id="title" type="text" wire:model.live="title" <?php if($type != 2): ?> required <?php endif; ?> autocomplete="off">
                <div>
                    <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['title'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="error"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                </div>
            </div>
        </div>

        <!--[if BLOCK]><![endif]--><?php if($type === 1): ?>
            <div class="row mb-3">
                <label class="col-sm-2 col-form-label" for="url">URL *</label>
                <div class="col-sm-10">
                    <input class="form-control" id="url" type="text" wire:model.live="url" autocomplete="off">
                    <div>
                        <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['url'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="error"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                    </div>
                </div>
            </div>
        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->

        <!--[if BLOCK]><![endif]--><?php if($type === 2): ?>
    <div class="row mb-3">
        <label class="col-sm-2 col-form-label" for="page">Sayfa *</label>
        <div class="col-sm-10">
            <select class="form-control" id="page" wire:model="page_id">
                <option value="">Sayfa seçin...</option>
                <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $this->pages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($page->id); ?>" <?php if($navigationLink->page_id == $page->id): ?> selected <?php endif; ?>>
                        <?php echo e($page->title); ?>

                    </option>
                    <!--[if BLOCK]><![endif]--><?php if($page->children->count() > 0): ?>
                        <?php echo $__env->make('partials.sub-pages', ['children' => $page->children, 'prefix' => '--', 'selectedPageId' => $navigationLink->page_id], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
            </select>
            <div>
                <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['page'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="error"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
            </div>
        </div>
    </div>
<?php endif; ?><!--[if ENDBLOCK]><![endif]-->


        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="description">Açıklama</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="description" wire:model.live="description" autocomplete="off"></textarea>
                <div>
                    <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="error"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="target">Hedef</label>
            <div class="col-sm-10">
                <select class="form-control" id="target" wire:model="target">
                    <option value="_self">Aynı Sekme</option>
                    <option value="_blank">Yeni Sekme</option>
                </select>
                <div>
                    <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['target'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="error"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2 col-form-label" for="class">Sınıf</label>
            <div class="col-sm-10">
                <input class="form-control" id="class" type="text" wire:model="class" autocomplete="off">
                <div>
                    <!--[if BLOCK]><![endif]--><?php $__errorArgs = ['class'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="error"><?php echo e($message); ?></span> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><!--[if ENDBLOCK]><![endif]-->
                </div>
            </div>
        </div>

        <button class="btn btn-primary" type="submit" wire:click.prevent="save" wire:loading.attr="disabled" wire:target="save">Güncelle</button>

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