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/291ffce4a7f55e32b7025f941394d71d.php
<style>
    .select2 {
        width: 100% !important;
    }
</style>

<div class="form-group">
    <label class="required" for="social_partner_id"><?php echo e(trans('cruds.contactPerson.fields.social_partner')); ?></label>
    <div class="d-flex align-items-center">
        <select class="form-control select2 <?php echo e($errors->has('social_partner') ? 'is-invalid' : ''); ?>" name="social_partner_id"
            id="social_partner_id" required>
            <?php $__currentLoopData = $social_partners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $id => $entry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($id); ?>" <?php echo e(old('social_partner_id') == $id ? 'selected' : ''); ?>>
                    <?php echo e($entry); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('company_create')): ?>
            <?php if($useModal): ?>
            <?php echo $__env->make('layouts.form_modal', ['fieldsLink' => 'admin.companies.company-fields', 'compName' => 'Company', 'route' => route('admin.companies.store'), 'title' => trans('global.add'), 'useModal' => false, 'nameModal' => false, 'modalBtn' => false], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <button class="btn btn-outline-primary ms-2" data-select-id="social_partner_id" id="openCompanyModal" >
                <i class="fa fa-plus"></i>
            </button>    
            <?php endif; ?>
        <?php endif; ?>
        <?php if($errors->has('social_partner')): ?>
            <span class="text-danger"><?php echo e($errors->first('social_partner')); ?></span>
        <?php endif; ?>
        <span class="help-block"><?php echo e(trans('cruds.contactPerson.fields.social_partner_helper')); ?></span>
    </div>
</div>
<?php if (isset($component)) { $__componentOriginalc1d2405c7f8100d77292f2d0299ccd96 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc1d2405c7f8100d77292f2d0299ccd96 = $attributes; } ?>
<?php $component = App\View\Components\Form\Input::resolve(['label' => ''.e(trans('cruds.contactPerson.fields.name')).'','name' => 'name','helpLabel' => ''.e(trans('cruds.contactPerson.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.contactPerson.fields.email')).'','type' => 'email','name' => 'email','required' => 'true','helpLabel' => ''.e(trans('cruds.contactPerson.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.contactPerson.fields.phone')).'','name' => 'phone','helpLabel' => ''.e(trans('cruds.contactPerson.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; ?>

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

<div class="form-group">
    <label><?php echo e(trans('cruds.contactPerson.fields.type')); ?></label>
    <?php $__currentLoopData = App\Models\ContactPerson::TYPE_RADIO; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-check <?php echo e($errors->has('type') ? 'is-invalid' : ''); ?>">
            <input class="form-check-input" type="radio" id="type_<?php echo e($key); ?>" name="type"
                value="<?php echo e($key); ?>" <?php echo e(old('type', '') === (string) $key ? 'checked' : ''); ?>>
            <label class="form-check-label" for="type_<?php echo e($key); ?>"><?php echo e($label); ?></label>
        </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php if($errors->has('type')): ?>
        <span class="text-danger"><?php echo e($errors->first('type')); ?></span>
    <?php endif; ?>
    <span class="help-block"><?php echo e(trans('cruds.contactPerson.fields.type_helper')); ?></span>
</div>
<?php /**PATH /var/www/ivs.kaunokolegija.lt/laravel/resources/views/admin/contactPeople/contact-people-fields.blade.php ENDPATH**/ ?>