관리-도구
편집 파일: 55eb26c04a81ed117cff38bff9f76fb4.php
<?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('New Enrolled')); ?> <?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('enrollment.index')).'','title' => ' '.e(isset($enrollment) ? 'Edit Enroll' : 'New Enroll').'','pageTo' => 'New Enroll']] + (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('enrollment.index')).'','title' => ' '.e(isset($enrollment) ? 'Edit Enroll' : 'New Enroll').'','page-to' => 'New Enroll']); ?> <?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(route('enrollment.store')); ?>" method="post" class="form"> <?php echo csrf_field(); ?> <?php if(isset($enrollment)): ?> <input type="hidden" value="<?php echo e($enrollment->id); ?>" name="id"> <?php endif; ?> <div class="grid grid-cols-12 card"> <div class="col-span-full md:col-span-6"> <div class="leading-none"> <label for="courseTitle" class="form-label"> <?php echo e(translate('Student')); ?> <span class="text-danger" title="<?php echo e(translate('This field is required')); ?>"><b>*</b></span> </label> <select class="form-input singleSelect" name="student_id"> <option selected disabled><?php echo e(translate('Select Student')); ?></option> <?php $__currentLoopData = get_all_student(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $student): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $studentTranslations = parse_translation($student?->userable); ?> <option value="<?php echo e($student->id); ?>" <?php echo e(isset($enrollment) && $enrollment->user_id == $student->id ? 'selected' : ''); ?>> <?php echo e($studentTranslations['first_name'] ?? $student?->userable?->first_name); ?> <?php echo e($studentTranslations['last_name'] ?? $student?->userable?->last_name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <span class="text-danger error-text student_id_err"></span> </div> <div class="mt-6 leading-none"> <label for="code" class="form-label"> <?php echo e(translate('Select Course')); ?> <span class="text-danger" title="<?php echo e(translate('This field is required')); ?>"><b>*</b></span> </label> <select class="form-input singleSelect" multiple name="courses[]"> <?php $__currentLoopData = getCourseByStatus(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $courseTranslations = parse_translation($course); $courseType =$course?->courseSetting?->is_free == 0 ? 'Paid' :" Free"; ?> <option value="<?php echo e($course->id); ?>" <?php echo e(isset($enrollment) && $enrollment?->course?->id == $course->id ? 'selected' : ''); ?>> <?php echo e($courseTranslations['title'] ?? $course?->title); ?> <?php echo e('-' .''. $courseType); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <span class="text-danger error-text courses_err"></span> </div> <button type="submit" class="btn b-solid btn-primary-solid w-max mt-5 dk-theme-card-square"> <?php echo e(translate('Enrolled')); ?> </button> </div> </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\enrollment\create.blade.php ENDPATH**/ ?>