Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/storage/framework/views/b036c9cd1ee2c6527912220a4c34034a.php
Назад
<?php $__env->startSection('title'); ?> <title><?php echo e(__('Edit Career')); ?></title> <?php $__env->stopSection(); ?> <?php $__env->startSection('admin-content'); ?> <div class="main-content"> <section class="section"> <?php if (isset($component)) { $__componentOriginaldbbc880c47f621cda59b70d6eb356b2f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.breadcrumb','data' => ['title' => ''.e(__('Edit Career')).'','list' => [ __('Dashboard') => route('admin.dashboard'), __('Career') => route('admin.career.index'), __('Edit Career') => '#', ]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.breadcrumb'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['title' => ''.e(__('Edit Career')).'','list' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([ __('Dashboard') => route('admin.dashboard'), __('Career') => route('admin.career.index'), __('Edit Career') => '#', ])]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f)): ?> <?php $attributes = $__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f; ?> <?php unset($__attributesOriginaldbbc880c47f621cda59b70d6eb356b2f); ?> <?php endif; ?> <?php if (isset($__componentOriginaldbbc880c47f621cda59b70d6eb356b2f)): ?> <?php $component = $__componentOriginaldbbc880c47f621cda59b70d6eb356b2f; ?> <?php unset($__componentOriginaldbbc880c47f621cda59b70d6eb356b2f); ?> <?php endif; ?> <div class="section-body row"> <div class="col-12"> <div class="card"> <div class="card-header gap-3 justify-content-between align-items-center"> <h5 class="m-0"><?php echo e(__('Available Translations')); ?></h5> <?php if(auth()->guard('admin')->user()->can('career.translate')): ?> <?php if($code !== $languages->first()->code): ?> <?php if (isset($component)) { $__componentOriginal60a020e5340f3f52bbc4501dc9f93102 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal60a020e5340f3f52bbc4501dc9f93102 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.button','data' => ['onclick' => 'translateAll()','id' => 'translate-btn','text' => __('Translate')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.button'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['onclick' => 'translateAll()','id' => 'translate-btn','text' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Translate'))]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal60a020e5340f3f52bbc4501dc9f93102)): ?> <?php $attributes = $__attributesOriginal60a020e5340f3f52bbc4501dc9f93102; ?> <?php unset($__attributesOriginal60a020e5340f3f52bbc4501dc9f93102); ?> <?php endif; ?> <?php if (isset($__componentOriginal60a020e5340f3f52bbc4501dc9f93102)): ?> <?php $component = $__componentOriginal60a020e5340f3f52bbc4501dc9f93102; ?> <?php unset($__componentOriginal60a020e5340f3f52bbc4501dc9f93102); ?> <?php endif; ?> <?php endif; ?> <?php endif; ?> </div> <div class="card-body"> <div class="lang_list_top"> <ul class="lang_list"> <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><a id="<?php echo e(request('code') == $language->code ? 'selected-language' : ''); ?>" href="<?php echo e(route('admin.career.edit', ['career' => $career->id, 'code' => $language->code])); ?>"><i class="fas <?php echo e(request('code') == $language->code ? 'fa-eye' : 'fa-edit'); ?>"></i><?php echo e($language->name); ?></a></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> <div class="mt-2 alert alert-danger" role="alert"> <?php $current_language = $languages->where('code', request()->get('code'))->first(); ?> <p><?php echo e(__('Your editing mode')); ?> : <b><?php echo e($current_language?->name); ?></b> </p> </div> </div> </div> </div> </div> <div class="section-body"> <div class="mt-4 row"> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <h4><?php echo e(__('Edit Career')); ?></h4> <div> <a href="<?php echo e(route('admin.career.index')); ?>" class="btn btn-primary"><i class="fa fa-arrow-left"></i><?php echo e(__('Back')); ?></a> </div> </div> <div class="card-body"> <form action="<?php echo e(route('admin.career.update', ['career' => $career->id, 'code' => $code])); ?>" method="post" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="row"> <?php if($code == $languages->first()->code): ?> <div class="col-md-8 offset-md-2"> <div class="form-group"> <label><?php echo e(__('Image')); ?></label> <div id="image-preview" class="image-preview" <?php if($career->image ?? false): ?> style="background-image: url(<?php echo e(asset($career->image)); ?>); background-size: cover; background-position: center center;" <?php endif; ?>> <label for="image-upload" id="image-label"><?php echo e(__('Image')); ?></label> <input type="file" name="image" id="image-upload"> </div> <?php $__errorArgs = ['image']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> <?php endif; ?> <div class="col-md-8 offset-md-2"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['dataTranslate' => 'true','id' => 'title','name' => 'title','label' => ''.e(__('Title')).'','placeholder' => ''.e(__('Enter Title')).'','value' => ''.e(old('title', $career->getTranslation($code)->title)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['data-translate' => 'true','id' => 'title','name' => 'title','label' => ''.e(__('Title')).'','placeholder' => ''.e(__('Enter Title')).'','value' => ''.e(old('title', $career->getTranslation($code)->title)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> </div> <?php if($code == $languages->first()->code): ?> <div class="col-md-8 offset-md-2"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['id' => 'slug','name' => 'slug','label' => ''.e(__('Slug')).'','placeholder' => ''.e(__('Enter Slug')).'','value' => ''.e(old('slug', $career->slug)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'slug','name' => 'slug','label' => ''.e(__('Slug')).'','placeholder' => ''.e(__('Enter Slug')).'','value' => ''.e(old('slug', $career->slug)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> </div> <div class="col-md-8 offset-md-2"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['id' => 'salary_range','name' => 'salary_range','label' => ''.e(__('Salary Range')).'','placeholder' => ''.e(__('Enter Salary Range')).'','value' => ''.e(old('salary_range', $career->salary_range)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'salary_range','name' => 'salary_range','label' => ''.e(__('Salary Range')).'','placeholder' => ''.e(__('Enter Salary Range')).'','value' => ''.e(old('salary_range', $career->salary_range)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> </div> <?php endif; ?> <div class="col-md-8 offset-md-2"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['id' => 'address','dataTranslate' => 'true','name' => 'address','label' => ''.e(__('Job Location')).'','placeholder' => ''.e(__('Enter Job Location')).'','value' => ''.e(old('address', $career->getTranslation($code)->address)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'address','data-translate' => 'true','name' => 'address','label' => ''.e(__('Job Location')).'','placeholder' => ''.e(__('Enter Job Location')).'','value' => ''.e(old('address', $career->getTranslation($code)->address)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> </div> <div class="col-md-8 offset-md-2"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['id' => 'job_nature','dataTranslate' => 'true','name' => 'job_nature','label' => ''.e(__('Job Nature')).'','placeholder' => ''.e(__('Enter Job Nature')).'','value' => ''.e(old('job_nature', $career->getTranslation($code)->job_nature)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'job_nature','data-translate' => 'true','name' => 'job_nature','label' => ''.e(__('Job Nature')).'','placeholder' => ''.e(__('Enter Job Nature')).'','value' => ''.e(old('job_nature', $career->getTranslation($code)->job_nature)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> </div> <div class="col-md-8 offset-md-2"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['id' => 'office_time','name' => 'office_time','label' => ''.e(__('Office Time')).'','dataTranslate' => 'true','placeholder' => ''.e(__('Enter Office Time')).'','value' => ''.e(old('office_time', $career->getTranslation($code)->office_time)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['id' => 'office_time','name' => 'office_time','label' => ''.e(__('Office Time')).'','data-translate' => 'true','placeholder' => ''.e(__('Enter Office Time')).'','value' => ''.e(old('office_time', $career->getTranslation($code)->office_time)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> </div> <?php if($code == $languages->first()->code): ?> <div class="col-md-8 offset-md-2"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal63bead4e908ebc125014a497e80acb69 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal63bead4e908ebc125014a497e80acb69 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-input','data' => ['class' => 'datepicker','id' => 'deadline','name' => 'deadline','label' => ''.e(__('Deadline')).'','placeholder' => ''.e(__('Enter Deadlinee')).'','dataTranslate' => 'true','value' => ''.e(old('deadline', $career->deadline)).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'datepicker','id' => 'deadline','name' => 'deadline','label' => ''.e(__('Deadline')).'','placeholder' => ''.e(__('Enter Deadlinee')).'','data-translate' => 'true','value' => ''.e(old('deadline', $career->deadline)).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $attributes = $__attributesOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__attributesOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> <?php if (isset($__componentOriginal63bead4e908ebc125014a497e80acb69)): ?> <?php $component = $__componentOriginal63bead4e908ebc125014a497e80acb69; ?> <?php unset($__componentOriginal63bead4e908ebc125014a497e80acb69); ?> <?php endif; ?> </div> </div> <?php endif; ?> <div class="col-md-8 offset-md-2"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal9f0e5ab70d2157b06099864da1513098 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9f0e5ab70d2157b06099864da1513098 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.form-editor','data' => ['dataTranslate' => 'true','id' => 'description','name' => 'description','label' => ''.e(__('Description')).'','value' => ''.old('description', $career->getTranslation($code)->description).'','required' => 'true']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.form-editor'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['data-translate' => 'true','id' => 'description','name' => 'description','label' => ''.e(__('Description')).'','value' => ''.old('description', $career->getTranslation($code)->description).'','required' => 'true']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9f0e5ab70d2157b06099864da1513098)): ?> <?php $attributes = $__attributesOriginal9f0e5ab70d2157b06099864da1513098; ?> <?php unset($__attributesOriginal9f0e5ab70d2157b06099864da1513098); ?> <?php endif; ?> <?php if (isset($__componentOriginal9f0e5ab70d2157b06099864da1513098)): ?> <?php $component = $__componentOriginal9f0e5ab70d2157b06099864da1513098; ?> <?php unset($__componentOriginal9f0e5ab70d2157b06099864da1513098); ?> <?php endif; ?> </div> </div> <?php if($code == $languages->first()->code): ?> <div class="col-md-8 offset-md-2"> <div class="form-group"> <label> <input type="hidden" value="0" name="status" class="custom-switch-input"> <input <?php echo e($career->status == 1 ? 'checked' : ''); ?> type="checkbox" value="1" name="status" class="custom-switch-input"> <span class="custom-switch-indicator"></span> <span class="custom-switch-description"><?php echo e(__('Status')); ?></span> </label> </div> </div> <?php endif; ?> <?php if(auth()->guard('admin')->user()->can('career.update')): ?> <div class="text-center offset-md-2 col-md-8"> <?php if (isset($component)) { $__componentOriginalf3ad9c349c70d58844f8581b0990debd = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalf3ad9c349c70d58844f8581b0990debd = $attributes; } ?> <?php $component = App\View\Components\Admin\UpdateButton::resolve(['text' => __('Update')] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.update-button'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Admin\UpdateButton::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalf3ad9c349c70d58844f8581b0990debd)): ?> <?php $attributes = $__attributesOriginalf3ad9c349c70d58844f8581b0990debd; ?> <?php unset($__attributesOriginalf3ad9c349c70d58844f8581b0990debd); ?> <?php endif; ?> <?php if (isset($__componentOriginalf3ad9c349c70d58844f8581b0990debd)): ?> <?php $component = $__componentOriginalf3ad9c349c70d58844f8581b0990debd; ?> <?php unset($__componentOriginalf3ad9c349c70d58844f8581b0990debd); ?> <?php endif; ?> </div> <?php endif; ?> </div> </form> </div> </div> </div> </div> </div> </section> </div> <?php $__env->stopSection(); ?> <?php if($code == $languages->first()->code): ?> <?php $__env->startPush('js'); ?> <script src="<?php echo e(asset('backend/js/jquery.uploadPreview.min.js')); ?>"></script> <script> $.uploadPreview({ input_field: "#image-upload", preview_box: "#image-preview", label_field: "#image-label", label_default: "<?php echo e(__('Choose Image')); ?>", label_selected: "<?php echo e(__('Change Image')); ?>", no_label: false, success_callback: null }); </script> <script> (function($) { "use strict"; $(document).ready(function() { $("#title").on("keyup", function(e) { $("#slug").val(convertToSlug($(this).val())); }) }); })(jQuery); function convertToSlug(Text) { return Text .toLowerCase() .replace(/[^\w ]+/g, '') .replace(/ +/g, '-'); } </script> <?php $__env->stopPush(); ?> <?php else: ?> <?php $__env->startPush('js'); ?> <script> var isTranslatingInputs = true; function translateOneByOne(inputs, index = 0) { if (index >= inputs.length) { if (isTranslatingInputs) { isTranslatingInputs = false; translateAllTextarea(); } $('#translate-btn').prop('disabled', false); $('#update-btn').prop('disabled', false); return; } var $input = $(inputs[index]); var inputValue = $input.val(); if (inputValue) { $.ajax({ url: "<?php echo e(route('admin.languages.update.single')); ?>", type: "POST", data: { lang: '<?php echo e($code); ?>', text: inputValue, _token: '<?php echo e(csrf_token()); ?>' }, dataType: 'json', beforeSend: function() { $input.prop('disabled', true); iziToast.show({ timeout: false, close: true, theme: 'dark', icon: 'loader', iconUrl: 'https://hub.izmirnic.com/Files/Images/loading.gif', title: "<?php echo e(__('Translation Processing, please wait...')); ?>", position: 'center', }); }, success: function(response) { $input.val(response); if ($input.hasClass('summernote')) { console.log($input); var inputId = $input.attr('id'); tinymce.get(inputId).setContent(response); } $input.prop('disabled', false); iziToast.destroy(); toastr.success("<?php echo e(__('Translated Successfully!')); ?>"); translateOneByOne(inputs, index + 1); }, error: function(jqXHR, textStatus, errorThrown) { console.error(textStatus, errorThrown); iziToast.destroy(); toastr.error('Error', 'Error'); } }); } else { translateOneByOne(inputs, index + 1); } } function translateAll() { iziToast.question({ timeout: 20000, close: false, overlay: true, displayMode: 'once', id: 'question', zindex: 999, title: "<?php echo e(__('This will take a while!')); ?>", message: "<?php echo e(__('Are you sure?')); ?>", position: 'center', buttons: [ ["<button><b><?php echo e(__('YES')); ?></b></button>", function(instance, toast) { var isDemo = "<?php echo e(env('APP_MODE') ?? 'LIVE'); ?>"; if (isDemo == 'DEMO') { instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); toastr.error("<?php echo e(__('This Is Demo Version. You Can Not Change Anything')); ?>"); return; } $('#translate-btn').prop('disabled', true); $('#update-btn').prop('disabled', true); instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); var inputs = $('input[data-translate="true"]').toArray(); translateOneByOne(inputs); }, true], ["<button><?php echo e(__('NO')); ?></button>", function(instance, toast) { instance.hide({ transitionOut: 'fadeOut' }, toast, 'button'); }], ], onClosing: function(instance, toast, closedBy) {}, onClosed: function(instance, toast, closedBy) {} }); }; function translateAllTextarea() { var inputs = $('textarea[data-translate="true"]').toArray(); if (inputs.length === 0) { return; } translateOneByOne(inputs); } $(document).ready(function() { var selectedTranslation = $('#selected-language').text(); var btnText = "<?php echo e(__('Translate to ')); ?>" + selectedTranslation; $('#translate-btn').text(btnText); }); </script> <?php $__env->stopPush(); ?> <?php endif; ?> <?php echo $__env->make('admin.master_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/lekhnath/silverray.com.au/Modules/Career/resources/views/edit.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка