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/workExperiences/create.blade.php
@extends('layouts.admin')
@section('content')

<div class="card">
    <div class="card-header">
        {{ trans('global.add') }} 
    </div>

    <div class="card-body">
        <form method="POST" action="{{ route("admin.work-experiences.store") }}" enctype="multipart/form-data">
            @csrf
            <div class="form-group">
                <label class="required" for="scientists">{{ trans('cruds.workExperience.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>
                <select class="form-control select2 {{ $errors->has('scientists') ? 'is-invalid' : '' }}" name="scientists[]" id="scientists" multiple required>
                    @foreach($scientists as $id => $scientist)
                        <option value="{{ $id }}" {{ in_array($id, old('scientists', [])) ? 'selected' : '' }}>{{ $scientist }}</option>
                    @endforeach
                </select>
                @if($errors->has('scientists'))
                    <span class="text-danger">{{ $errors->first('scientists') }}</span>
                @endif
                <span class="help-block">{{ trans('cruds.workExperience.fields.scientist_helper') }}</span>
            </div>
            <div class="form-group">
                <label class="required" for="period_from">{{ trans('cruds.workExperience.fields.period_from') }}</label>
                <input class="form-control date {{ $errors->has('period_from') ? 'is-invalid' : '' }}" type="text" name="period_from" id="period_from" value="{{ old('period_from') }}" required>
                @if($errors->has('period_from'))
                    <span class="text-danger">{{ $errors->first('period_from') }}</span>
                @endif
                <span class="help-block">{{ trans('cruds.workExperience.fields.period_from_helper') }}</span>
            </div>
            <div class="form-group">
                <label for="period_to">{{ trans('cruds.workExperience.fields.period_to') }}</label>
                <input class="form-control date {{ $errors->has('period_to') ? 'is-invalid' : '' }}" type="text" name="period_to" id="period_to" value="{{ old('period_to') }}">
                @if($errors->has('period_to'))
                    <span class="text-danger">{{ $errors->first('period_to') }}</span>
                @endif
                <span class="help-block">{{ trans('cruds.workExperience.fields.period_to_helper') }}</span>
            </div>
            <div class="form-group">
                <label class="required" for="institution">{{ trans('cruds.workExperience.fields.institution') }}</label>
                <input class="form-control {{ $errors->has('institution') ? 'is-invalid' : '' }}" type="text" name="institution" id="institution" value="{{ old('institution', '') }}" required>
                @if($errors->has('institution'))
                    <span class="text-danger">{{ $errors->first('institution') }}</span>
                @endif
                <span class="help-block">{{ trans('cruds.workExperience.fields.institution_helper') }}</span>
            </div>
            <div class="form-group">
                <label class="required" for="position">{{ trans('cruds.workExperience.fields.position') }}</label>
                <input class="form-control {{ $errors->has('position') ? 'is-invalid' : '' }}" type="text" name="position" id="position" value="{{ old('position', '') }}" required>
                @if($errors->has('position'))
                    <span class="text-danger">{{ $errors->first('position') }}</span>
                @endif
                <span class="help-block">{{ trans('cruds.workExperience.fields.position_helper') }}</span>
            </div>
            <div class="form-group">
                <button class="btn btn-success" type="submit">
                    {{ trans('global.save') }}
                </button>
            </div>
        </form>
    </div>
</div>



@endsection