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/alumnies/alumnies-fields.blade.php
<div class="form-group">
    <label class="required" for="name">{{ trans('cruds.alumny.fields.name') }}</label>
    <input class="form-control {{ $errors->has('name') ? 'is-invalid' : '' }}" type="text" name="name" id="name" value="{{ old('name', '') }}" required>
    @if($errors->has('name'))
        <span class="text-danger">{{ $errors->first('name') }}</span>
    @endif
    <span class="help-block">{{ trans('cruds.alumny.fields.name_helper') }}</span>
</div>
<div class="form-group">
    <label class="required" for="graduated">{{ trans('cruds.alumny.fields.graduated') }}</label>
    <input class="form-control date {{ $errors->has('graduated') ? 'is-invalid' : '' }}" type="text" name="graduated" id="graduated" value="{{ old('graduated') }}" required>
    @if($errors->has('graduated'))
        <span class="text-danger">{{ $errors->first('graduated') }}</span>
    @endif
    <span class="help-block">{{ trans('cruds.alumny.fields.graduated_helper') }}</span>
</div>
<div class="form-group">
    <label class="required" for="faculties">{{ trans('cruds.alumny.fields.faculty') }}</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('faculties') ? 'is-invalid' : '' }}" name="faculties[]" id="faculties" multiple required>
            @foreach($faculties as $id => $faculty)
                <option value="{{ $id }}" {{ in_array($id, old('faculties', [])) ? 'selected' : '' }}>{{ $faculty }}</option>
            @endforeach
        </select>
        @can('department_create')
            @if($nameModal)  
            <x-modal.create-name-modal compName="Department" name="name" label="{{ trans('cruds.department.fields.name') }}" route="{{ route('admin.departments.store') }}"/>
            @endif
            @if($modalBtn)
            <button type="button" data-select-id="faculties" class="btn btn-outline-primary ms-2" id="openDepartmentModal">
                <i class="fa fa-plus"></i>
            </button>
            @endif
        @endcan
        @if($errors->has('faculties'))
            <span class="text-danger">{{ $errors->first('faculties') }}</span>
        @endif
        <span class="help-block">{{ trans('cruds.alumny.fields.faculty_helper') }}</span>
    </div>
</div>
<div class="form-group">
    <label for="cathedrals">{{ trans('cruds.alumny.fields.cathedral') }}</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('cathedrals') ? 'is-invalid' : '' }}" name="cathedrals[]" id="cathedrals" multiple>
            @foreach($cathedrals as $id => $cathedral)
                <option value="{{ $id }}" {{ in_array($id, old('cathedrals', [])) ? 'selected' : '' }}>{{ $cathedral }}</option>
            @endforeach
        </select>
        {{-- @if ($useModal) 
        @include('layouts.form_modal', ['fieldsLink' => 'admin.departmentSubsections.departament-subsection-fields', 'compName' => 'DepartmentSubsection', 'route' => route('admin.department-subsections.store'), 'title' => trans('global.create'), 'useModal' => false, 'nameModal' => false, 'modalBtn' => false])
        <button class="btn btn-outline-primary ms-2" data-select-id="cathedrals" id="openDepartmentSubsectionModal" >
            <i class="fa fa-plus"></i>
        </button>
        @endif --}}
        @if($errors->has('cathedrals'))
            <span class="text-danger">{{ $errors->first('cathedrals') }}</span>
        @endif
        <span class="help-block">{{ trans('cruds.alumny.fields.cathedral_helper') }}</span>
    </div>
</div>
<div class="form-group">
    <label class="required" for="study_programs">{{ trans('cruds.alumny.fields.study_program') }}</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('study_programs') ? 'is-invalid' : '' }}" name="study_programs[]" id="study_programs" multiple required>
            @foreach($study_programs as $id => $study_program)
                <option value="{{ $study_program->id }}" {{ in_array($study_program->id, old('study_programs', [])) ? 'selected' : '' }}>{{ $study_program->name }}</option>
            @endforeach
        </select>
        @can('study_program_create')
            @if($nameModal)
            <x-modal.create-name-modal compName="StudyProgram" title="{{ trans('global.add') }}" name="name" label="{{ trans('cruds.studyProgram.fields.name') }}" route="{{ route('admin.study-programs.store') }}" />
            @endif
            @if($modalBtn)
            <button type="button" data-select-id="study_programs" class="btn btn-outline-primary ms-2" id="openStudyProgramModal">
                <i class="fa fa-plus"></i>
            </button>
            @endif
        @endcan
        @if($errors->has('study_programs'))
            <span class="text-danger">{{ $errors->first('study_programs') }}</span>
        @endif
        <span class="help-block">{{ trans('cruds.alumny.fields.study_program_helper') }}</span>
    </div>
</div>
<div class="form-group">
    <label for="alumny_area_of_cooperations">{{ trans('cruds.alumny.fields.alumny_area_of_cooperations') }}</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('alumnyareaofcooperations') ? 'is-invalid' : '' }}" name="alumnyareaofcooperations[]" id="alumnyareaofcooperations" multiple>
            @foreach($alumnyareaofcooperations as $id => $alumny_area_of_cooperation)
                <option value="{{ $alumny_area_of_cooperation->id }}" {{ in_array($alumny_area_of_cooperation->id, old('alumnyareaofcooperations', [])) ? 'selected' : '' }}>{{ $alumny_area_of_cooperation->name }}</option>
            @endforeach
        </select>
        @can('alumny_area_of_cooperations_create')
            @if($nameModal)  
            <x-modal.create-name-modal compName="AlumnyAreaOfCooperation" title="{{ trans('global.add') }}" name="name" label="{{ trans('cruds.alumnyAreaOfCooperation.fields.name') }}" route="{{ route('admin.alumny-area-of-cooperations.store') }}" />
            @endif
            @if($modalBtn)
            <button type="button" data-select-id="alumnyareaofcooperations" class="btn btn-outline-primary ms-2" id="openAlumnyAreaOfCooperationModal">
                <i class="fa fa-plus"></i>
            </button>
            @endif
        @endcan
        @if($errors->has('alumnyareaofcooperations'))
            <span class="text-danger">{{ $errors->first('alumnyareaofcooperations') }}</span>
        @endif
        <span class="help-block">{{ trans('cruds.alumny.fields.alumny_area_of_cooperations_helper') }}</span>
    </div>
</div>
<div class="form-group">
    <label for="workplaces">{{ trans('cruds.alumny.fields.workplace') }}</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('workplaces') ? 'is-invalid' : '' }}" name="workplaces[]" id="workplaces" multiple>
            @foreach($workplaces as $id => $workplace)
                <option value="{{ $id }}" {{ in_array($id, old('workplaces', [])) ? 'selected' : '' }}>{{ $workplace }}</option>
            @endforeach
        </select>
        @can('alumni_company_create')
            @if ($useModal)
            @include('layouts.form_modal', ['fieldsLink' => 'admin.alumniCompanies.alumni-companies-fields', 'compName' => 'AlumniCompany', 'route' => route('admin.alumni-companies.store'), 'title' => trans('global.create'), 'useModal' => false, 'nameModal' => true, 'modalBtn' => true])
            <button class="btn btn-outline-primary ms-2" data-select-id="workplaces" id="openAlumniCompanyModal" >
                <i class="fa fa-plus"></i>
            </button>
            @endif
        @endcan
        @if($errors->has('workplaces'))
            <span class="text-danger">{{ $errors->first('workplaces') }}</span>
        @endif
        <span class="help-block">{{ trans('cruds.alumny.fields.workplace_helper') }}</span>
    </div>
</div>
<div class="form-group">
    <label for="positions">{{ trans('cruds.alumny.fields.position') }}</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>
    <select class="form-control select2 {{ $errors->has('positions') ? 'is-invalid' : '' }}" name="positions[]" id="positions" multiple>
        @foreach($positions as $id => $position)
            <option value="{{ $position->id }}" {{ in_array($position->id, old('positions', [])) ? 'selected' : '' }}>{{ $position->name }}</option>
        @endforeach
    </select>
    @if($errors->has('positions'))
        <span class="text-danger">{{ $errors->first('positions') }}</span>
    @endif
    <span class="help-block">{{ trans('cruds.alumny.fields.position_helper') }}</span>
</div>
<div class="form-group">
    <label class="required" for="email">{{ trans('cruds.alumny.fields.email') }}</label>
    <input class="form-control {{ $errors->has('email') ? 'is-invalid' : '' }}" type="email" name="email" id="email" value="{{ old('email') }}" required>
    @if($errors->has('email'))
        <span class="text-danger">{{ $errors->first('email') }}</span>
    @endif
    <span class="help-block">{{ trans('cruds.alumny.fields.email_helper') }}</span>
</div>
<div class="form-group">
    <label for="phone">{{ trans('cruds.alumny.fields.phone') }}</label>
    <input class="form-control {{ $errors->has('phone') ? 'is-invalid' : '' }}" type="text" name="phone" id="phone" value="{{ old('phone', '') }}">
    @if($errors->has('phone'))
        <span class="text-danger">{{ $errors->first('phone') }}</span>
    @endif
    <span class="help-block">{{ trans('cruds.alumny.fields.phone_helper') }}</span>
</div>
<x-form.textarea label="{{ trans('global.additional_info_1') }}" name="additional_field_1"/>
<x-form.textarea label="{{ trans('global.additional_info_2') }}" name="additional_field_2"/>
<x-form.textarea label="{{ trans('global.additional_info_3') }}" name="additional_field_3"/>
<x-form.textarea label="{{ trans('global.additional_info_4') }}" name="additional_field_4"/>
<x-form.textarea label="{{ trans('global.additional_info_5') }}" name="additional_field_5"/>