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/resources/views/admin/patents/patents-fields.blade.php
<div class="form-group">
    <label class="required" for="scientists">{{ trans('cruds.patent.fields.scientist') }}</label>
    <div style="padding-bottom: 4px">
        <span class="btn btn-info btn-xs select-all" style="border-radius: 0">{{ trans('global.select_all') }}</span>
        <span class="btn btn-info btn-xs deselect-all" style="border-radius: 0">{{ trans('global.deselect_all') }}</span>
    </div>
    <div class="d-flex align-items-center">
        <select class="form-control select2 {{ $errors->has('scientists') ? 'is-invalid' : '' }}" name="scientists[]" id="scientists" multiple required>
            @foreach($scientists as $id => $scientist)
                <option value="{{ $scientist->id }}" {{ in_array($scientist->id, old('scientists', [])) ? 'selected' : '' }}>{{ $scientist->name }}</option>
            @endforeach
        </select>
        @can('scientist_create')
        @if ($useModal)
            @include('layouts.form_modal', ['fieldsLink' => 'admin.scientists.scientists-fields', 'compName' => 'Scientist', 'route' => route('admin.scientists.store'), 'title' => trans('global.create') . ' ' . trans('cruds.scientist.title_singular'), 'useModal' => false, 'nameModal' => true, 'modalBtn' => true])
            <button class="btn btn-outline-primary ms-2" data-select-id="scientists" id="openScientistModal" >
                <i class="fa fa-plus"></i>
            </button>
            @endif
        @endcan
        @if($errors->has('scientists'))
            <span class="text-danger">{{ $errors->first('scientists') }}</span>
        @endif
        <span class="help-block">{{ trans('cruds.patent.fields.scientist_helper') }}</span>
    </div>
</div>

<x-form.input label="{{ trans('cruds.patent.fields.year') }}" required="true" name="year" helpLabel="{{ trans('cruds.patent.fields.year_helper') }}" isDate="true" />

<div class="form-group">
    <label class="required" for="tags">{{ trans('cruds.patent.fields.tag') }}</label>
    <div style="padding-bottom: 4px">
        <span class="btn btn-info btn-xs select-all" style="border-radius: 0">{{ trans('global.select_all') }}</span>
        <span class="btn btn-info btn-xs deselect-all" style="border-radius: 0">{{ trans('global.deselect_all') }}</span>
    </div>
    <div class="d-flex align-items-center">
        <select class="form-control select2 {{ $errors->has('tags') ? 'is-invalid' : '' }}" name="tags[]" id="tags" multiple required>
            @foreach($tags as $id => $tag)
                <option value="{{ $id }}" {{ in_array($id, old('tags', [])) ? 'selected' : '' }}>{{ $tag }}</option>
            @endforeach
        </select>
        @can('patent_tag_create')
            @if ($nameModal)
            <x-modal.create-name-modal compName="PatentTag" title="{{ trans('global.add') }}" name="name" label="{{ trans('cruds.patentTag.fields.name') }}" route="{{ route('admin.patent-tags.store') }}" />
            @endif
            @if ($modalBtn)
            <button type="button" data-select-id="tags" class="btn btn-outline-primary ms-2" id="openPatentTagModal">
                <i class="fa fa-plus"></i>
            </button>
            @endif
        @endcan
        @if($errors->has('tags'))
            <span class="text-danger">{{ $errors->first('tags') }}</span>
        @endif
        <span class="help-block">{{ trans('cruds.patent.fields.tag_helper') }}</span>
    </div>
</div>

<x-form.input label="{{ trans('cruds.patent.fields.title') }}" name="title" required="true" helpLabel="{{ trans('cruds.patent.fields.title_helper') }}"/>

<x-form.input label="{{ trans('cruds.patent.fields.number') }}" name="number" required="true" helpLabel="{{ trans('cruds.patent.fields.number_helper') }}"/>

<div class="form-group">
    <label class="required" for="input">{{ trans('cruds.patent.fields.input') }}</label>
    <input class="form-control {{ $errors->has('input') ? 'is-invalid' : '' }}" type="number" name="input" id="input" value="{{ old('input', '') }}" step="0.001" required>
    @if($errors->has('input'))
        <span class="text-danger">{{ $errors->first('input') }}</span>
    @endif
    <span class="help-block">{{ trans('cruds.patent.fields.input_helper') }}</span>
</div>