<?php $__env->startSection('table'); ?>
    <?php echo e(__('testimonials')); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('mainContent'); ?>
    <?php
        $LanguageList = getLanguageList();
    ?>
    <?php echo generateBreadcrumb(); ?>


    <section class="admin-visitor-area up_st_admin_visitor">
        <div class="container-fluid p-0">
            <div class="row justify-content-end">
                <div class="col-lg-12">
                    <div class="white-box">
                        <div class="row">
                            <div class="col-7">
                                <div class="box_header common_table_header">
                                    <div class="main-title d-flex flex-wrap mb-0">
                                        <h3 class="mb-0" id="page_title"><?php echo e(__('frontendmanage.Become Instructor')); ?> </h3>
                                    </div>
                                </div>
                            </div>
                            <div class="col-5 text-end">
                                <a target="_blank" href="<?php echo e(route('becomeInstructor')); ?>"
                                   class="primary-btn small fix-gr-bg w-fit float-end"> <span
                                        class="ti-eye pe-2"></span> <?php echo e(__('student.Preview')); ?> </a>
                            </div>
                        </div>
                        <div class="QA_section QA_section_heading_custom check_box_table">
                            <div class="QA_table">
                                <!-- table-responsive -->
                                <div class="">
                                    <table id="lms_table" class="table Crm_table_active3">
                                        <thead>
                                        <tr>
                                            <th scope="col"><?php echo e(__('common.SL')); ?></th>
                                            <th scope="col"><?php echo e(__('common.Section')); ?> </th>
                                            <th scope="col"><?php echo e(__('common.Title')); ?></th>
                                            <th scope="col"><?php echo e(__('common.Action')); ?></th>
                                        </tr>
                                        </thead>
                                        <tbody>


                                        <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td><?php echo e(translatedNumber($key+1)); ?></td>
                                                <td><?php echo e(ucfirst(str_replace('_',' ',$setting->section))); ?></td>
                                                <td><?php echo e($setting->title); ?></td>
                                                <td>
                                                    <div class="dropdown CRM_dropdown">
                                                        <button class="btn btn-secondary dropdown-toggle" type="button"
                                                                id="dropdownMenu2" data-bs-toggle="dropdown"
                                                                aria-haspopup="true"
                                                                aria-expanded="false">
                                                            <?php echo e(__('common.Action')); ?>

                                                        </button>
                                                        <div class="dropdown-menu dropdown-menu-right"
                                                             aria-labelledby="dropdownMenu2">
                                                            <a href="#" data-bs-toggle="modal"
                                                               data-bs-target="#editSetting<?php echo e(@$setting->id); ?>"
                                                               class="dropdown-item"
                                                               type="button"><?php echo e(__('common.Edit')); ?></a>
                                                            <?php if($setting->id==6): ?>
                                                                <a href="<?php echo e(route('frontend.workProcess')); ?>"
                                                                   class="dropdown-item"
                                                                   type="button"><?php echo e(__('setting.Manage')); ?></a>
                                                            <?php endif; ?>

                                                        </div>
                                                    </div>

                                                </td>
                                            </tr>

                                            <div class="modal fade admin-query" id="editSetting<?php echo e(@$setting->id); ?>">
                                                <div class="modal-dialog modal_1000px modal-dialog-centered">
                                                    <div class="modal-content">
                                                        <div class="modal-header">
                                                            <h4 class="modal-title"><?php echo e(__('common.Edit')); ?>  </h4>
                                                            <button type="button" class="close "
                                                                    data-bs-dismiss="modal">
                                                                <i class="ti-close "></i>
                                                            </button>
                                                        </div>
                                                        <div class="modal-body  student-details header-menu">
                                                            <form action="<?php echo e(route('frontend.becomeInstructorUpdate')); ?>"
                                                                  method="POST"
                                                                  enctype="multipart/form-data">

                                                                <?php echo csrf_field(); ?>
                                                                <input name="id"
                                                                       value="<?php echo e(@$setting->id); ?>"

                                                                       type="hidden">


                                                                <div class="row pt-0">
                                                                    <?php if(isModuleActive('FrontendMultiLang')): ?>
                                                                        <ul class="nav nav-tabs no-bottom-border  mt-sm-md-20 mb-10 ms-3"
                                                                            role="tablist">
                                                                            <?php $__currentLoopData = $LanguageList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                                <li class="nav-item">
                                                                                    <a class="nav-link  <?php if(auth()->user()->language_code == $language->code): ?> active <?php endif; ?>"
                                                                                       href="#element<?php echo e(@$setting->id); ?><?php echo e($language->code); ?>"
                                                                                       role="tab"
                                                                                       data-bs-toggle="tab"><?php echo e($language->native); ?>  </a>
                                                                                </li>
                                                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                        </ul>
                                                                    <?php endif; ?>
                                                                </div>
                                                                <div class="tab-content">
                                                                    <?php $__currentLoopData = $LanguageList; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                        <div role="tabpanel"
                                                                             class="tab-pane fade <?php if(auth()->user()->language_code == $language->code): ?> show active <?php endif; ?>  "
                                                                             id="element<?php echo e(@$setting->id); ?><?php echo e($language->code); ?>">
                                                                            <div class="row">
                                                                                <?php if($setting->id==6): ?>
                                                                                    <div class="col-xl-12">
                                                                                        <div
                                                                                            class="primary_input mb-25">
                                                                                            <label
                                                                                                class="primary_input_label"
                                                                                                for=""> <?php echo e(__('common.Section')); ?> </label>
                                                                                            <input
                                                                                                class="primary_input_field"
                                                                                                name="section[<?php echo e($language->code); ?>]"
                                                                                                value="<?php echo e(@$setting->getTranslation('section',$language->code)); ?>"
                                                                                                placeholder="-"
                                                                                                type="text">
                                                                                        </div>
                                                                                    </div>
                                                                                <?php endif; ?>

                                                                                <div class="col-xl-12">
                                                                                    <div class="primary_input mb-25">
                                                                                        <label
                                                                                            class="primary_input_label"
                                                                                            for=""> <?php echo e(__('common.Title')); ?> </label>
                                                                                        <input
                                                                                            class="primary_input_field"
                                                                                            name="title[<?php echo e($language->code); ?>]"
                                                                                            value="<?php echo e(@$setting->getTranslation('title',$language->code)); ?>"
                                                                                            placeholder="-"
                                                                                            type="text">
                                                                                    </div>
                                                                                </div>
                                                                                <?php if($setting->id!=6): ?>
                                                                                    <div class="col-xl-12">
                                                                                        <div
                                                                                            class="primary_input mb-25">
                                                                                            <label
                                                                                                class="primary_input_label"
                                                                                                for=""> <?php echo e(__('common.Details')); ?> </label>
                                                                                            <input
                                                                                                class="primary_input_field"
                                                                                                name="description[<?php echo e($language->code); ?>]"
                                                                                                value="<?php echo e(@$setting->getTranslation('description',$language->code)); ?>"
                                                                                                placeholder="-"
                                                                                                type="text">
                                                                                        </div>
                                                                                    </div>
                                                                                <?php endif; ?>
                                                                                <?php if($setting->id==4 || $setting->id==5): ?>
                                                                                    <div class="col-xl-12">
                                                                                        <div
                                                                                            class="primary_input mb-25">
                                                                                            <label
                                                                                                class="primary_input_label"
                                                                                                for=""> <?php echo e(__('frontendmanage.Button Name')); ?> </label>
                                                                                            <input
                                                                                                class="primary_input_field"
                                                                                                name="btn_name[<?php echo e($language->code); ?>]"
                                                                                                value="<?php echo e(@$setting->getTranslation('btn_name',$language->code)); ?>"
                                                                                                placeholder="Become instructor"
                                                                                                type="text">
                                                                                        </div>
                                                                                    </div>
                                                                                <?php endif; ?>
                                                                            </div>
                                                                        </div>
                                                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                                </div>

                                                                <div class="row">

                                                                    <?php if($setting->id==4): ?>
                                                                        <div class="col-xl-12">

                                                                            <div class="primary_input mb-25">
                                                                                <label class="primary_input_label"
                                                                                       for=""> <?php echo e(__('frontendmanage.Background Image')); ?> </label>
                                                                                <div class="primary_file_uploader">
                                                                                    <input
                                                                                        class="primary-input filePlaceholder"
                                                                                        type="text"
                                                                                        id="placeholderFileOneName"
                                                                                        placeholder="<?php echo e(__('frontendmanage.Browse Image')); ?>"
                                                                                        readonly="">
                                                                                    <button class="" type="button">
                                                                                        <label
                                                                                            class="primary-btn small fix-gr-bg"
                                                                                            for="document_file_3_edit_<?php echo e(@$setting->id); ?>"><?php echo e(__('common.Browse')); ?></label>
                                                                                        <input type="file"
                                                                                               class="d-none fileUpload"
                                                                                               name="bg_image"
                                                                                               id="document_file_3_edit_<?php echo e(@$setting->id); ?>">
                                                                                    </button>


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

                                                                    <?php if($setting->id==1 || $setting->id==2 ||$setting->id==3): ?>
                                                                        <div class="col-xl-12">

                                                                            <div class="primary_input mb-25">
                                                                                <label class="primary_input_label"
                                                                                       for=""> <?php echo e(__('frontendmanage.Icon')); ?> </label>
                                                                                <select name="icon" id="icon"
                                                                                        class="primary_select">
                                                                                    <?php
                                                                                        $name = explode("-", $setting->icon);
                            $name1 = explode($name[0].'-', $setting->icon);
                                                                                    ?>
                                                                                    <option value="<?php echo e($setting->icon); ?>">
                                                                                        <i class="<?php echo e($setting->icon); ?>"></i> <?php echo e($name1[1]??''); ?>

                                                                                    </option>

                                                                                    <?php echo returnList(); ?>

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

                                                                    <?php if($setting->id==6): ?>
                                                                        <div class="col-xl-12">
                                                                            <div class="primary_input mb-25">
                                                                                <label class="primary_input_label"
                                                                                       for=""> <?php echo e(__('courses.Image')); ?> </label>
                                                                                <div class="primary_file_uploader">
                                                                                    <input class="primary-input"
                                                                                           type="text"
                                                                                           id="placeholderFileOneName"
                                                                                           placeholder="<?php echo e(__('frontendmanage.Browse Image')); ?>"
                                                                                           readonly="">
                                                                                    <button class="" type="button">
                                                                                        <label
                                                                                            class="primary-btn small fix-gr-bg"
                                                                                            for="document_file_3_edit_<?php echo e(@$setting->id); ?>"><?php echo e(__('common.Browse')); ?></label>
                                                                                        <input type="file"
                                                                                               class="d-none"
                                                                                               name="image"
                                                                                               id="document_file_3_edit_<?php echo e(@$setting->id); ?>">
                                                                                    </button>


                                                                                </div>
                                                                            </div>
                                                                        </div>

                                                                        <div class="col-xl-12">
                                                                            <div class="primary_input mb-25">
                                                                                <label class="primary_input_label"
                                                                                       for=""> <?php echo e(__('courses.Video URL')); ?> </label>
                                                                                <input class="primary_input_field"
                                                                                       name="video"
                                                                                       value="<?php echo e(@$setting->video); ?>"
                                                                                       placeholder="<?php echo e(__('frontendmanage.Youtube Video Link')); ?>"
                                                                                       type="text">
                                                                            </div>
                                                                        </div>
                                                                    <?php endif; ?>


                                                                </div>


                                                                <div class="col-lg-12 text-center pt_15">
                                                                    <div class="d-flex justify-content-center">
                                                                        <button
                                                                            class="primary-btn semi_large2  fix-gr-bg"
                                                                            id="save_button_parent" type="submit"><i
                                                                                class="ti-check"></i> <?php echo e(__('common.Update')); ?>

                                                                        </button>
                                                                    </div>
                                                                </div>


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

<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
    <script type="application/javascript">


        dataTableOptions = updateColumnExportOption(dataTableOptions, [0, 1, 2]);

        let table = $('#lms_table').DataTable(dataTableOptions);


    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('backend.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/minialms/card.minialms.com/Modules/FrontendManage/Resources/views/becomeInstructor.blade.php ENDPATH**/ ?>