@extends('layouts.app') @section('title', __('titles.windows.edit_user_affiliation')) @section('content') {{ __('links.back_to_profile') }} {{ __('titles.pages.edit_user_affiliation') }} @method('PUT') @csrf @include('users.includes.organization_card', ['organization' => $linked_aff]) {{ Str::ucfirst(__('entities.position')) }} @error('position_id') @include('includes.shared.context_error', ['message' => $errors->first('position_id')]) @enderror @foreach($positions as $pos) id == $linked_aff->pivot->position_id) selected @endif>{{ Str::ucfirst($pos->name) }} @endforeach {{ __('links.position_not_found') }} {{ __('actions.shared.save') }} {{ __('labels.main_structure') }} @error('main_structure') @include('includes.shared.context_error', ['message' => $errors->first('main_structure')]) @enderror {{ __('labels.secondary_structure') }} @error('secondary_structure') @include('includes.shared.context_error', ['message' => $errors->first('secondary_structure')]) @enderror {{ __('labels.start_date') }} @error('start_date') @include('includes.shared.context_error', ['message' => $errors->first('start_date')]) @enderror {{ __('labels.date_format') }} @error('start_date_format') @include('includes.shared.context_error', ['message' => $errors->first('start_date_format')]) @enderror pivot->start_date_format == 'd/m/Y') selected @endif)>{{ __('labels.full_date') }} pivot->start_date_format == 'm/Y') selected @endif)>{{ __('labels.month_and_year') }} pivot->start_date_format == 'Y') selected @endif)>{{ __('labels.year_only') }} {{ __('labels.end_date') }} @error('end_date') @include('includes.shared.context_error', ['message' => $errors->first('end_date')]) @enderror {{ __('labels.date_format') }} @error('end_date_format') @include('includes.shared.context_error', ['message' => $errors->first('end_date_format')]) @enderror pivot->end_date_format == 'd/m/Y') selected @endif)>{{ __('labels.full_date') }} pivot->end_date_format == 'm/Y') selected @endif)>{{ __('labels.month_and_year') }} pivot->end_date_format == 'Y') selected @endif)>{{ __('labels.year_only') }} @error('is_current') @include('includes.shared.context_error', ['message' => $errors->first('is_current')]) @enderror {{ __('labels.still_my_job') }} {{ __('actions.shared.save') }} {{ __('actions.shared.cancel') }} @endsection