{{ __('recruitment.accounts.title') }}

{{ __('recruitment.accounts.help') }}

@if($canManageHiring){{ __('recruitment.hiring_approvals') }}@endif
@if(session('message'))
{{ session('message') }}
@endif @if(session('error'))@endif @error('account')@enderror
@forelse($accounts as $account) @php($accountStatus = $account->completed_at ? 'completed' : ($account->password_set_at ? 'incomplete' : ($account->credentials_sent_at ? 'sent' : ($account->account_ready_at ? 'ready' : 'requested')))) @empty@endforelse
{{ __('Name') }}{{ __('recruitment.accounts.emails') }}{{ __('Status') }}{{ __('recruitment.accounts.tracking') }}{{ __('Actions') }}
@can('employees show'){{ $account->user->name }}@else{{ $account->user->name }}@endcan

{{ $account->user->position?->name }}

{{ __('recruitment.accounts.personal_email') }}: {{ $account->personal_email }}

{{ __('recruitment.accounts.corporate_email') }}: {{ $account->account_ready_at ? $account->user->email : '—' }}

{{ __('recruitment.accounts.statuses.'.$accountStatus) }}

{{ __('recruitment.accounts.requested_at') }}: {{ $account->account_requested_at?->format('Y-m-d H:i') }}

{{ __('recruitment.accounts.it_notified_at') }}: {{ $account->account_it_notified_at?->format('Y-m-d H:i') ?? '—' }}

@if($account->account_ready_at)

{{ __('recruitment.accounts.ready_at') }}: {{ $account->account_ready_at->format('Y-m-d H:i') }}

@endif @if($account->credentials_sent_at)

{{ __('recruitment.accounts.sent_at') }}: {{ $account->credentials_sent_at->format('Y-m-d H:i') }}

@endif @if($account->account_it_error)

{{ $account->account_it_error }}

@endif @if($account->invitation_error)

{{ $account->invitation_error }}

@endif
@if(! $account->account_ready_at) @if($canManageItAccounts)@endif @if($canRequestIt)@endif @elseif(! $account->password_set_at && ! $account->completed_at && $canManageItAccounts) @endif {{ __('recruitment.accounts.please_wait') }}
{{ __('recruitment.accounts.empty') }}
{{ $accounts->links() }}
@if($editingId)

{{ __('recruitment.accounts.confirm_ready') }}

{{ __('recruitment.accounts.ready_help') }}

@error('corporateEmail')

{{ $message }}

@enderror @error('personalEmail')

{{ $message }}

@enderror
@endif