관리-도구
편집 파일: 21d3bab2a14eaa004baa1180bdbf66db.php
<?php $userInfo = $organization?->userable ?? null; $locale = request()->locale ?? app()->getLocale(); $translations = []; if ($userInfo) { $translations = parse_translation($userInfo, $locale); } ?> <?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 Organization')); ?> <?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('organization.index')).'','title' => 'Edit','pageTo' => 'Organization']] + (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('organization.index')).'','title' => 'Edit','page-to' => 'Organization']); ?> <?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; ?> <?php if(is_active('organization.translate') === 'active'): ?> <div class="flex items-center justify-end gap-4 mb-2"> <h2 class="card-title"><?php echo e(translate('Translate Language')); ?></h2> <form method="GET" class="sm:block" id="change-translate-language"> <select onchange="window.location.href=this.options[this.selectedIndex].value" name="id" class="text-gray-500 dark:text-dark-text dark:bg-dark-card-shade font-semibold bg-white focus:outline-none cursor-pointer select-none text-sm border dk-border-one px-2 py-2 rounded-md dk-theme-card-square"> <?php $__currentLoopData = app('languages'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $lang): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($lang->code); ?>" <?php echo e(isset($locale) && $locale == $lang->code ? 'selected' : ''); ?>> <?php echo e($lang->name); ?> </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </form> </div> <?php endif; ?> <form action="<?php echo e(route('organization.update', $organization->id)); ?>" method="post" class="form" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <input type="hidden" name="locale" class="form-input" value="<?php echo e($locale ?? ''); ?>"> <div class="grid grid-cols-12 gap-x-4"> <div class="col-span-full <?php echo e(is_active('organization.translate') !== 'active' ? 'lg:col-span-8' : ''); ?> card p-4 md:p-6"> <h6 class="leading-none text-xl font-semibold text-heading"> <?php echo e(translate('Edit Organization')); ?> </h6> <div class="grid grid-cols-2 gap-x-4 gap-y-6 mt-7"> <div class="col-span-full md:col-auto leading-none"> <label for="name" class="form-label"> <?php echo e(translate('Organization Name')); ?> <span class="text-danger" title="<?php echo e(translate('This field is required')); ?>"><b>*</b></span></label> <input type="text" id="name" name="name" value="<?php echo e($translations['name'] ?? $organization?->userable?->name ?? ''); ?>" placeholder="<?php echo e(translate('Enter Organization Name')); ?>" class="form-input"> <span class="text-danger error-text name_err"></span> </div> <?php if(is_active('organization.translate') !== 'active'): ?> <div class="col-span-full md:col-auto leading-none"> <label for="phone-number" class="form-label"> <?php echo e(translate('Phone Number')); ?> <span class="text-danger" title="<?php echo e(translate('This field is required')); ?>"><b>*</b></span></label> <input type="text" id="phone-number" name="phone" value="<?php echo e($organization?->userable?->phone); ?>" placeholder="<?php echo e(translate('Enter Phone Number')); ?>" class="form-input"> <span class="text-danger error-text phone_err"></span> </div> <div class="col-span-full md:col-auto leading-none"> <label for="email" class="form-label"> <?php echo e(translate('Email')); ?> <span class="text-danger" title="<?php echo e(translate('This field is required')); ?>"><b>*</b></span></label> <input type="text" id="email" name="email" placeholder="<?php echo e(translate('Enter Email')); ?>" class="form-input" value="<?php echo e($organization?->email); ?>"> <span class="text-danger error-text email_err"></span> </div> <div class="col-span-full md:col-auto leading-none"> <label for="password" class="form-label"> <?php echo e(translate('Country')); ?> </label> <select class="country-list form-input px-5 py-4 rounded-10 country-state" name="country_id"> <option disabled selected></option> <?php $__currentLoopData = get_all_country(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($country->id); ?>" <?php echo e($userInfo && $userInfo->country_id == $country->id ? 'selected' : ''); ?>> <?php echo e($country->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <span class="text-danger error-text country_id_err"></span> </div> <div class="col-span-full md:col-auto leading-none"> <label for="state" class="form-label"> <?php echo e(translate('State')); ?> </label> <select class="state-list form-input px-5 py-4 rounded-10 state-city" id="stateOption" name="state_id"> <option disabled selected></option> </select> <span class="text-danger error-text state_id_err"></span> </div> <div class="col-span-full md:col-auto leading-none"> <label for="city" class="form-label"> <?php echo e(translate('city')); ?> </label> <select class="city-list form-input px-5 py-4 rounded-10" id="cityOption" name="city_id"> <option disabled selected></option> </select> <span class="text-danger error-text city_id_err"></span> </div> <?php endif; ?> <div class="col-span-full"> <label for="address" class="form-label"> <?php echo e(translate('Address')); ?> </label> <input type="text" id="address" name="address" value="<?php echo e($translations['address'] ?? $organization?->userable?->address ?? ''); ?>" class="form-input"> <span class="text-danger error-text address_err"></span> </div> <div class="col-span-full leading-none"> <label for="address" class="form-label"> <?php echo e(translate('About')); ?> </label> <textarea name="about" class="summernote"><?php echo clean($translations['about'] ?? $organization?->userable?->about ?? ''); ?></textarea> </div> </div> </div> <?php if(is_active('organization.translate') !== 'active'): ?> <div class="col-span-full lg:col-span-4 card p-4 md:p-6"> <p class="text-xs text-gray-500 dark:text-dark-text leading-none font-semibold mb-3"> <div class="mb-3"> <h1><?php echo e(translate('Change Password')); ?></h1> </div> <div class="col-span-full xl:col-auto leading-none mb-4"> <label class="form-label"> <?php echo e(translate('Password')); ?> <span class="text-danger" title="<?php echo e(translate('This field is required')); ?>"><b>*</b></span> </label> <input type="password" name="password" placeholder="<?php echo e(translate('Enter Password')); ?>" class="form-input"> <span class="text-danger error-text password_err"></span> </div> <div class="col-span-full xl:col-auto leading-none mb-4"> <label class="form-label"> <?php echo e(translate('Confirm Password')); ?> <span class="text-danger" title="<?php echo e(translate('This field is required')); ?>"><b>*</b></span> </label> <input type="password" name="password_confirmation" placeholder="<?php echo e(translate('Confirm Password')); ?>" class="form-input"> </div> <div> <label class="form-label"> <?php echo e(translate('Profile Image')); ?>(<?php echo e(translate('100')); ?>x<?php echo e(translate('100')); ?>)</p> </label> <label for="imgage" class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square"> <input type="file" hidden name="image" id="imgage" class="dropzone dropzone-image img-src peer/file"> <span class="flex-center flex-col peer-[.uploaded]/file:hidden"> <img src="<?php echo e(asset('lms/')); ?>/assets/images/icons/upload-file.svg" alt="file-icon" class="size-8 lg:size-auto"> <div class="text-gray-500 dark:text-dark-text mt-2"> <?php echo e(translate('Choose file')); ?> </div> </span> <span class="text-danger error-text image_err"></span> </label> <div class="preview-zone dropzone-preview"> <div class="box box-solid"> <div class="box-body flex items-center gap-2 flex-wrap"> <?php if(fileExists($folder = 'lms/organizations', $fileName = $organization?->userable?->profile_img) == true && $organization?->userable?->profile_img !== ''): ?> <div class="img-thumb-wrapper"> <button class="remove"> <i class="ri-close-line text-inherit text-[13px]"></i> </button> <img class="img-thumb" width="100" src="<?php echo e(asset('storage/lms/organizations/' . $organization?->userable?->profile_img)); ?>" /> </div> <?php endif; ?> </div> </div> </div> </div> <div class="mt-7"> <label class="form-label"> <?php echo e(translate('Cover Image')); ?> </label> <label class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer w-full h-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square"> <input type="file" hidden name="profile_cover" class="dropzone dropzone-image img-src peer/file"> <span class="flex-center flex-col peer-[.uploaded]/file:hidden"> <img src="<?php echo e(asset('lms/')); ?>/assets/images/icons/upload-file.svg" alt="file-icon" class="size-8 lg:size-auto"> <div class="text-gray-500 dark:text-dark-text mt-2"> <?php echo e(translate('Choose file')); ?> </div> </span> </label> <div class="preview-zone dropzone-preview"> <div class="box box-solid"> <div class="box-body flex items-center gap-2 flex-wrap"> <?php if(fileExists('lms/organizations', $fileName = $organization?->userable?->cover_photo) == true && $organization?->userable?->cover_photo !== ''): ?> <div class="img-thumb-wrapper"> <button class="remove text-danger"> <i class="ri-close-line text-inherit text-[13px]"></i> </button> <img class="img-thumb" width="100" src="<?php echo e(asset('storage/lms/organizations/' . $organization?->userable?->cover_photo)); ?>" /> </div> <?php endif; ?> </div> </div> </div> <span class="text-danger error-text profile_cover_err"></span> </div> </div> <?php endif; ?> </div> <div class="card flex justify-end mb-5"> <button type="submit" class="btn b-solid btn-primary-solid w-max dk-theme-card-square"> <?php echo e(translate('Update')); ?> </button> </div> </form> <input type="hidden" id="countryId" value="<?php echo e($organization?->userable?->country_id); ?>" /> <input type="hidden" id="stateId" value="<?php echo e($organization?->userable?->state_id); ?>" /> <input type="hidden" id="cityId" value="<?php echo e($organization?->userable?->city_id); ?>" /> <?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\organization\edit.blade.php ENDPATH**/ ?>