<div class="p-sm-25 p-15">
    <div class="d-flex justify-content-between align-items-center g-10 pb-20 mb-17 bd-b-one bd-c-stroke">
        <h5 class="fs-18 fw-600 lh-22 text-title-black"><?php echo e(__('Update Section')); ?></h5>
        <button type="button" class="bd-one bd-c-stroke rounded-circle w-24 h-24 bg-transparent text-para-text fs-13"
                data-bs-dismiss="modal" aria-label="Close"><i class="fa-solid fa-times"></i></button>
    </div>
    <form class="ajax reset" action="<?php echo e(route('admin.setting.frontend.section.update')); ?>" method="post"
          data-handler="settingCommonHandler">
        <?php echo csrf_field(); ?>
        <input type="hidden" name="slug" value="<?php echo e($section->slug); ?>">

        <div class="row rg-24">
            <input name="id" type="hidden" value="<?php echo e($section->id); ?>">
            <?php if($section->slug != 'growing_company'): ?>
                <div class="col-12">

                    <label class="zForm-label"><?php echo e(__('Title')); ?><span class="text-danger">*</span></label>
                    <input class="zForm-control" type="text" name="title" placeholder="<?php echo e(__('Title')); ?>"
                           value="<?php echo e($section->title); ?>">

                </div>
                <div class="col-12">

                    <label class="zForm-label"><?php echo e(__('Description')); ?><span class="text-danger">*</span></label>
                    <textarea name="description" class="zForm-control"
                              placeholder="<?php echo e(__('Description')); ?>"><?php echo e($section->description); ?></textarea>

                </div>
            <?php endif; ?>
            <div class="col-12">

                <label class="zForm-label"><?php echo e(__('Status')); ?><span class="text-danger">*</span></label>
                <select name="status" class="form-select zForm-control">
                    <option <?php echo e($section->status == 1 ? 'selected' : ''); ?> value="1"><?php echo e(__('Active')); ?>

                    </option>
                    <option <?php echo e($section->status == 0 ? 'selected' : ''); ?> value="0"><?php echo e(__('Deactivate')); ?>

                    </option>
                </select>

            </div>
            <?php if($section->has_image == STATUS_ACTIVE): ?>
                <div class="col-12">

                    <label for="image" class="zForm-label"><?php echo e(__('Image')); ?> <span class="text-danger">*</span></label>
                    <div class="upload-img-box">
                        <img src="<?php echo e(getFileUrl($section->image)); ?>">
                        <input type="file" name="image" accept="image/*" onchange="previewFile(this)">
                    </div>

                </div>
            <?php endif; ?>
        </div>


        <button type="submit"
                class="m-0 fs-15 border-0 fw-500 lh-25 text-white py-10 px-26 bg-main-color bd-ra-12 mt-20"><?php echo e(__('Update')); ?></button>

    </form>
</div>
<?php /**PATH /home6/metawebd/metagrievance.metawebdevelopment.cloud/resources/views/admin/setting/frontend_settings/section/edit-form.blade.php ENDPATH**/ ?>