HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/ivs.kaunokolegija.lt/laravel/storage/framework/views/05800c3f699bbec1769bda07275ea06c.php
<?php if (isset($component)) { $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96 = $attributes; } ?>
<?php $component = App\View\Components\Form\Input::resolve(['label' => ''.e(trans('cruds.scientist.fields.name')).'','name' => 'name','required' => 'true','helpLabel' => ''.e(trans('cruds.scientist.fields.name_helper')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('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(App\View\Components\Form\Input::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($__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96)): ?>
<?php $attributes = $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96; ?>
<?php unset($__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc1d2405c7f8100d77292f2d0299ccd96)): ?>
<?php $component = $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96; ?>
<?php unset($__componentOriginalc1d2405c7f8100d77292f2d0299ccd96); ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96 = $attributes; } ?>
<?php $component = App\View\Components\Form\Input::resolve(['label' => ''.e(trans('cruds.scientist.fields.position')).'','name' => 'position','helpLabel' => ''.e(trans('cruds.scientist.fields.position_helper')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('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(App\View\Components\Form\Input::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($__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96)): ?>
<?php $attributes = $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96; ?>
<?php unset($__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc1d2405c7f8100d77292f2d0299ccd96)): ?>
<?php $component = $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96; ?>
<?php unset($__componentOriginalc1d2405c7f8100d77292f2d0299ccd96); ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96 = $attributes; } ?>
<?php $component = App\View\Components\Form\Input::resolve(['label' => ''.e(trans('cruds.scientist.fields.email')).'','name' => 'email','type' => 'email','helpLabel' => ''.e(trans('cruds.scientist.fields.email_helper')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('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(App\View\Components\Form\Input::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($__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96)): ?>
<?php $attributes = $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96; ?>
<?php unset($__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc1d2405c7f8100d77292f2d0299ccd96)): ?>
<?php $component = $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96; ?>
<?php unset($__componentOriginalc1d2405c7f8100d77292f2d0299ccd96); ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96 = $attributes; } ?>
<?php $component = App\View\Components\Form\Input::resolve(['label' => ''.e(trans('cruds.scientist.fields.phone')).'','name' => 'phone','helpLabel' => ''.e(trans('cruds.scientist.fields.phone_helper')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('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(App\View\Components\Form\Input::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($__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96)): ?>
<?php $attributes = $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96; ?>
<?php unset($__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc1d2405c7f8100d77292f2d0299ccd96)): ?>
<?php $component = $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96; ?>
<?php unset($__componentOriginalc1d2405c7f8100d77292f2d0299ccd96); ?>
<?php endif; ?>

<div class="form-group">
    <div class="form-check <?php echo e($errors->has('ismain') ? 'is-invalid' : ''); ?>">
        <input type="hidden" name="ismain" value="0">
        <input class="form-check-input" type="checkbox" name="ismain" id="ismain" value="1" <?php echo e(old('ismain', 0) == 1 ? 'checked' : ''); ?>>
        <label class="form-check-label" for="ismain"><?php echo e(trans('cruds.scientist.fields.ismain')); ?></label>
    </div>
    <?php if($errors->has('ismain')): ?>
        <span class="text-danger"><?php echo e($errors->first('ismain')); ?></span>
    <?php endif; ?>
    <span class="help-block"><?php echo e(trans('cruds.scientist.fields.ismain_helper')); ?></span>
</div>

<div class="form-group">
    <label for="groups"><?php echo e(trans('cruds.scientist.fields.group')); ?></label>
    <div style="padding-bottom: 4px">
        <span class="btn btn-info btn-xs select-all" style="border-radius: 0"><?php echo e(trans('global.select_all')); ?></span>
        <span class="btn btn-info btn-xs deselect-all" style="border-radius: 0"><?php echo e(trans('global.deselect_all')); ?></span>
    </div>
    <div class="d-flex align-items-center">
        <select class="form-control select2 <?php echo e($errors->has('groups') ? 'is-invalid' : ''); ?>" name="groups[]" id="researcher-groups" multiple>
            <?php $__currentLoopData = $groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($id); ?>" <?php echo e(in_array($id, old('groups', [])) ? 'selected' : ''); ?>><?php echo e($group); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('researcher_group_create')): ?>
            <?php if($nameModal): ?>   
            <?php if (isset($component)) { $__componentOriginal863456d2b7044be7ea705fd9162e9dfc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal863456d2b7044be7ea705fd9162e9dfc = $attributes; } ?>
<?php $component = App\View\Components\Modal\CreateNameModal::resolve(['compName' => 'Groups','name' => 'title','label' => ''.e(trans('global.title')).'','route' => ''.e(route('admin.researcher-groups.store')).''] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('modal.create-name-modal'); ?>
<?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\Modal\CreateNameModal::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($__attributesOriginal863456d2b7044be7ea705fd9162e9dfc)): ?>
<?php $attributes = $__attributesOriginal863456d2b7044be7ea705fd9162e9dfc; ?>
<?php unset($__attributesOriginal863456d2b7044be7ea705fd9162e9dfc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal863456d2b7044be7ea705fd9162e9dfc)): ?>
<?php $component = $__componentOriginal863456d2b7044be7ea705fd9162e9dfc; ?>
<?php unset($__componentOriginal863456d2b7044be7ea705fd9162e9dfc); ?>
<?php endif; ?>
            <?php endif; ?>
            <?php if($modalBtn): ?>
            <button type="button" data-select-id="researcher-groups" class="btn btn-outline-primary ms-2" id="openGroupsModal">
                <i class="fa fa-plus"></i>
            </button>
            <?php endif; ?>
        <?php endif; ?>
        <?php if($errors->has('groups')): ?>
            <span class="text-danger"><?php echo e($errors->first('groups')); ?></span>
        <?php endif; ?>
        <span class="help-block"><?php echo e(trans('cruds.scientist.fields.group_helper')); ?></span>
    </div>
</div>
<div class="form-group">
    <label for="subgroups"><?php echo e(trans('cruds.scientist.fields.subgroup')); ?></label>
    <div style="padding-bottom: 4px">
        <span class="btn btn-info btn-xs select-all" style="border-radius: 0"><?php echo e(trans('global.select_all')); ?></span>
        <span class="btn btn-info btn-xs deselect-all" style="border-radius: 0"><?php echo e(trans('global.deselect_all')); ?></span>
    </div>
    <div class="d-flex align-items-center">
        <select class="form-control select2 <?php echo e($errors->has('subgroups') ? 'is-invalid' : ''); ?>" name="subgroups[]" id="subgroups" multiple>
            <?php $__currentLoopData = $subgroups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $subgroup): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($id); ?>" <?php echo e(in_array($id, old('subgroups', [])) ? 'selected' : ''); ?>><?php echo e($subgroup); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('researcher_sub_group_create')): ?>
            <?php if($useModal): ?>
            <?php echo $__env->make('layouts.form_modal', ['fieldsLink' => 'admin.researcherSubGroups.researcher-sub-groups-fields', 'compName' => 'ResearcherSubGroup', 'route' => route('admin.researcher-sub-groups.store'), 'title' => trans('global.create') . ' ' . trans('cruds.researcherSubGroup.title_singular'), 'useModal' => false, 'nameModal' => true, 'modalBtn' => true], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <button class="btn btn-outline-primary ms-2" data-select-id="subgroups" id="openResearcherSubGroupModal" >
                <i class="fa fa-plus"></i>
            </button>
            <?php endif; ?>
        <?php endif; ?>
        <?php if($errors->has('subgroups')): ?>
            <span class="text-danger"><?php echo e($errors->first('subgroups')); ?></span>
        <?php endif; ?>
        <span class="help-block"><?php echo e(trans('cruds.scientist.fields.subgroup_helper')); ?></span>
    </div>
</div>
<?php /**PATH /var/www/ivs.kaunokolegija.lt/laravel/resources/views/admin/scientists/scientists-fields.blade.php ENDPATH**/ ?>