Editing: a7cc34ff0c632926940d6222a711e0a1a0bb6b70.php
<?php $__env->startPush('styles_top'); ?> <link rel="stylesheet" href="/assets/default/vendors/daterangepicker/daterangepicker.min.css"> <link rel="stylesheet" href="/assets/default/vendors/select2/select2.min.css"> <link rel="stylesheet" href="/assets/default/vendors/bootstrap-tagsinput/bootstrap-tagsinput.min.css"> <?php $__env->stopPush(); ?> <div class="row"> <div class="col-12 col-md-6 mt-15"> <div class="form-group mt-15"> <label class="input-label"><?php echo e(trans('public.capacity')); ?></label> <input type="number" name="capacity" value="<?php echo e((!empty($webinar) and !empty($webinar->capacity)) ? $webinar->capacity : old('capacity')); ?>" class="form-control <?php $__errorArgs = ['capacity']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" placeholder="<?php echo e(trans('forms.capacity_placeholder')); ?>"/> <?php $__errorArgs = ['capacity']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> <p class="text-gray mt-5 font-12"><?php echo e(trans('forms.empty_means_unlimited')); ?></p> </div> <div class="row mt-15"> <?php if($webinar->isWebinar()): ?> <div class="col-12 col-md-6"> <div class="form-group"> <label class="input-label"><?php echo e(trans('public.start_date')); ?></label> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text" id="dateInputGroupPrepend"> <i data-feather="calendar" width="18" height="18" class="text-white"></i> </span> </div> <input type="text" name="start_date" value="<?php echo e((!empty($webinar) and $webinar->start_date) ? dateTimeFormat($webinar->start_date, 'Y-m-d H:i', false, false, $webinar->timezone) : old('start_date')); ?>" class="form-control <?php $__errorArgs = ['start_date']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> datetimepicker" aria-describedby="dateInputGroupPrepend"/> <?php $__errorArgs = ['start_date']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> </div> <?php endif; ?> <div class="col-12 <?php if($webinar->isWebinar()): ?> col-md-6 <?php endif; ?>"> <div class="form-group"> <label class="input-label"><?php echo e(trans('public.duration')); ?> (<?php echo e(trans('public.minutes')); ?>)</label> <div class="input-group"> <div class="input-group-prepend"> <span class="input-group-text" id="timeInputGroupPrepend"> <i data-feather="clock" width="18" height="18" class="text-white"></i> </span> </div> <input type="text" name="duration" value="<?php echo e((!empty($webinar) and !empty($webinar->duration)) ? $webinar->duration : old('duration')); ?>" class="form-control <?php $__errorArgs = ['duration']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>"/> <?php $__errorArgs = ['duration']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> </div> </div> <?php if($webinar->isWebinar() and getFeaturesSettings('timezone_in_create_webinar')): ?> <?php $selectedTimezone = getGeneralSettings('default_time_zone'); if (!empty($webinar->timezone)) { $selectedTimezone = $webinar->timezone; } elseif (!empty($authUser) and !empty($authUser->timezone)) { $selectedTimezone = $authUser->timezone; } ?> <div class="form-group"> <label class="input-label"><?php echo e(trans('update.timezone')); ?></label> <select name="timezone" class="form-control select2" data-allow-clear="false"> <?php $__currentLoopData = getListOfTimezones(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $timezone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($timezone); ?>" <?php if($selectedTimezone == $timezone): ?> selected <?php endif; ?>><?php echo e($timezone); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php $__errorArgs = ['timezone']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <?php endif; ?> <?php if(!empty(getFeaturesSettings("course_forum_status"))): ?> <div class="form-group mt-30 d-flex align-items-center justify-content-between mb-5"> <label class="cursor-pointer input-label" for="forumSwitch"><?php echo e(trans('update.course_forum')); ?></label> <div class="custom-control custom-switch"> <input type="checkbox" name="forum" class="custom-control-input" id="forumSwitch" <?php echo e(!empty($webinar) && $webinar->forum ? 'checked' : (old('forum') ? 'checked' : '')); ?>> <label class="custom-control-label" for="forumSwitch"></label> </div> </div> <div> <p class="font-12 text-gray">- <?php echo e(trans('update.panel_course_forum_hint')); ?></p> </div> <?php endif; ?> <div class="form-group mt-30 d-flex align-items-center justify-content-between"> <label class="cursor-pointer input-label" for="supportSwitch"><?php echo e(trans('webinars.support')); ?></label> <div class="custom-control custom-switch"> <input type="checkbox" name="support" class="custom-control-input" id="supportSwitch" <?php echo e(((!empty($webinar) && $webinar->support) or old('support') == 'on') ? 'checked' : ''); ?>> <label class="custom-control-label" for="supportSwitch"></label> </div> </div> <?php if(!empty(getCertificateMainSettings("status"))): ?> <div class="form-group mt-30 d-flex align-items-center justify-content-between"> <label class="cursor-pointer input-label" for="certificateSwitch"><?php echo e(trans('update.include_certificate')); ?></label> <div class="custom-control custom-switch"> <input type="checkbox" name="certificate" class="custom-control-input" id="certificateSwitch" <?php echo e(((!empty($webinar) && $webinar->certificate) or old('certificate') == 'on') ? 'checked' : ''); ?>> <label class="custom-control-label" for="certificateSwitch"></label> </div> </div> <div> <p class="font-12 text-gray">- <?php echo e(trans('update.certificate_completion_hint')); ?></p> </div> <?php endif; ?> <div class="form-group mt-30 d-flex align-items-center justify-content-between"> <label class="cursor-pointer input-label" for="downloadableSwitch"><?php echo e(trans('home.downloadable')); ?></label> <div class="custom-control custom-switch"> <input type="checkbox" name="downloadable" class="custom-control-input" id="downloadableSwitch" <?php echo e(((!empty($webinar) && $webinar->downloadable) or old('downloadable') == 'on') ? 'checked' : ''); ?>> <label class="custom-control-label" for="downloadableSwitch"></label> </div> </div> <div class="form-group mt-30 d-flex align-items-center justify-content-between"> <label class="cursor-pointer input-label" for="partnerInstructorSwitch"><?php echo e(trans('public.partner_instructor')); ?></label> <div class="custom-control custom-switch"> <input type="checkbox" name="partner_instructor" class="custom-control-input" id="partnerInstructorSwitch" <?php echo e(((!empty($webinar) && $webinar->partner_instructor) or old('partner_instructor') == 'on') ? 'checked' : ''); ?>> <label class="custom-control-label" for="partnerInstructorSwitch"></label> </div> </div> <div id="partnerInstructorInput" class="form-group mt-15 <?php echo e(((!empty($webinar) && $webinar->partner_instructor) or old('partner_instructor') == 'on') ? '' : 'd-none'); ?>"> <label class="input-label d-block"><?php echo e(trans('public.select_a_partner_teacher')); ?></label> <select name="partners[]" class="form-control panel-search-user-select2 <?php $__errorArgs = ['partners']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" multiple="" data-search-option="just_teachers" data-placeholder="<?php echo e(trans('public.search_instructor')); ?>"> <?php if(!empty($webinar->webinarPartnerTeacher)): ?> <?php $__currentLoopData = $webinar->webinarPartnerTeacher; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partnerTeacher): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option selected value="<?php echo e($partnerTeacher->teacher->id); ?>"><?php echo e($partnerTeacher->teacher->full_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> <div class="text-gray font-12 mt-1"><?php echo e(trans('admin/main.invited_instructor_hint')); ?></div> <?php $__errorArgs = ['partners']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group mt-15"> <label class="input-label d-block"><?php echo e(trans('public.tags')); ?></label> <input type="text" name="tags" data-max-tag="5" value="<?php echo e(!empty($webinar) ? implode(',',$webinarTags) : ''); ?>" class="form-control inputtags" placeholder="<?php echo e(trans('public.type_tag_name_and_press_enter')); ?> (<?php echo e(trans('forms.max')); ?> : 5)"/> </div> <div class="form-group mt-15"> <label class="input-label"><?php echo e(trans('public.category')); ?></label> <select id="categories" class="custom-select <?php $__errorArgs = ['category_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" name="category_id" required> <option <?php echo e((!empty($webinar) and !empty($webinar->category_id)) ? '' : 'selected'); ?> disabled><?php echo e(trans('public.choose_category')); ?></option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(!empty($category->subCategories) and $category->subCategories->count() > 0): ?> <optgroup label="<?php echo e($category->title); ?>"> <?php $__currentLoopData = $category->subCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($subCategory->id); ?>" <?php echo e(((!empty($webinar) and $webinar->category_id == $subCategory->id) or old('category_id') == $subCategory->id) ? 'selected' : ''); ?>><?php echo e($subCategory->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </optgroup> <?php else: ?> <option value="<?php echo e($category->id); ?>" <?php echo e(((!empty($webinar) and $webinar->category_id == $category->id) or old('category_id') == $category->id) ? 'selected' : ''); ?>><?php echo e($category->title); ?></option> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php $__errorArgs = ['category_id']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <div class="invalid-feedback"> <?php echo e($message); ?> </div> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> </div> <div class="form-group mt-15 <?php echo e((!empty($webinarCategoryFilters) and count($webinarCategoryFilters)) ? '' : 'd-none'); ?>" id="categoriesFiltersContainer"> <span class="input-label d-block"><?php echo e(trans('public.category_filters')); ?></span> <div id="categoriesFiltersCard" class="row mt-20"> <?php if(!empty($webinarCategoryFilters) and count($webinarCategoryFilters)): ?> <?php $__currentLoopData = $webinarCategoryFilters; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $filter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-12 col-md-3"> <div class="webinar-category-filters"> <strong class="category-filter-title d-block"><?php echo e($filter->title); ?></strong> <div class="py-10"></div> <?php $webinarFilterOptions = $webinar->filterOptions->pluck('filter_option_id')->toArray(); if (!empty(old('filters'))) { $webinarFilterOptions = array_merge($webinarFilterOptions, old('filters')); } ?> <?php $__currentLoopData = $filter->options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="form-group mt-10 d-flex align-items-center justify-content-between"> <label class="cursor-pointer font-14 text-gray" for="filterOptions<?php echo e($option->id); ?>"><?php echo e($option->title); ?></label> <div class="custom-control custom-checkbox"> <input type="checkbox" name="filters[]" value="<?php echo e($option->id); ?>" <?php echo e(((!empty($webinarFilterOptions) && in_array($option->id, $webinarFilterOptions)) ? 'checked' : '')); ?> class="custom-control-input" id="filterOptions<?php echo e($option->id); ?>"> <label class="custom-control-label" for="filterOptions<?php echo e($option->id); ?>"></label> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </div> </div> <?php $__env->startPush('scripts_bottom'); ?> <script src="/assets/default/vendors/select2/select2.min.js"></script> <script src="/assets/default/vendors/moment.min.js"></script> <script src="/assets/default/vendors/daterangepicker/daterangepicker.min.js"></script> <script src="/assets/default/vendors/bootstrap-tagsinput/bootstrap-tagsinput.min.js"></script> <?php $__env->stopPush(); ?> <?php /**PATH /home/ayaclass/public_html/resources/views/web/default/panel/webinar/create_includes/step_2.blade.php ENDPATH**/ ?>
Save
Back