<?php if (isset($component)) { $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb = $attributes; } ?>
<?php $component = Modules\LMS\View\Components\Dashboard\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Modules\LMS\View\Components\Dashboard\Layout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('title', null, []); ?>  <?php echo e(translate('Edit Hero')); ?> <?php $__env->endSlot(); ?>
    <!-- BREADCRUMB -->
    <?php if (isset($component)) { $__componentOriginalcf27f2c2c873893339708d5fdeeb6984 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.breadcrumb','data' => ['backUrl' => ''.e(route('hero.index')).'','title' => ''.e(isset($hero) ? 'Edit' : 'Create').' Hero','pageTo' => 'Hero']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.breadcrumb'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['back-url' => ''.e(route('hero.index')).'','title' => ''.e(isset($hero) ? 'Edit' : 'Create').' Hero','page-to' => 'Hero']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $attributes = $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $component = $__componentOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>
    <form action="<?php echo e(isset($hero) ? route('hero.update', $hero->id) : route('hero.store')); ?>" method="post"
        class="form mb-4" enctype="multipart/form-data">
        <?php if(isset($hero)): ?>
            <?php echo method_field('PUT'); ?>
            <input type="hidden" name="id" value="<?php echo e($hero->id); ?>">
        <?php endif; ?>
        <?php echo csrf_field(); ?>
        <div class="card">
            <div>
                <label for="title" class="form-label"><?php echo e(translate('Title')); ?> <span
                        class="require-field">*</span></label>
                <input type="text" id="title" name="title" placeholder="<?php echo e(translate('Enter Title')); ?>"
                    class="form-input" value="<?php echo e($hero->title ?? ''); ?>">
                <span class="text-danger error-text title_err"></span>
            </div>
            <div class="mt-6">
                <label class="form-label"> <?php echo e(translate('Theme')); ?> <span class="require-field">*</span></label>
                <select name="theme_id" class="form-label singleSelect">
                    <option selected disabled> <?php echo e(translate('Select Theme')); ?></option>
                    <?php $__currentLoopData = get_themes(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $theme): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($theme->id); ?>"
                            <?php echo e(isset($hero) && $hero->theme_id == $theme->id ? 'selected' : ''); ?>>
                            <?php echo e($theme->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
                <span class="text-danger error-text theme_id_err"></span>
            </div>

            <div class="mt-6">
                <div class="flex items-center gap-2">
                    <input id="check-s-1" type="checkbox" name="status" class="check check-primary-solid"
                        <?php echo e(isset($hero) && $hero->status ? 'checked' : ''); ?>>
                    <label for="check-s-1" class="leading-none font-medium text-gray-500 dark:text-dark-text">
                        <?php echo e(translate('Enable')); ?></label>
                </div>
            </div>
        </div>
        <div class="card flex justify-end">
            <button type="submit" class="btn b-solid btn-primary-solid dk-theme-card-square">
                <?php echo e(isset($hero) ? translate('Update') : translate('Save')); ?>

            </button>
        </div>
    </form>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $attributes = $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $component = $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\admin\hero\form.blade.php ENDPATH**/ ?>