@php $modals = \Wallo\FilamentCompanies\FilamentCompanies::getModals(); @endphp
@if (Gate::check('addCompanyEmployee', $company)) {{ __('filament-companies::default.grid_section_titles.add_company_employee') }} {{ __('filament-companies::default.grid_section_descriptions.add_company_employee') }}

{{ __('filament-companies::default.subheadings.companies.company_employee_manager') }}

@if (count($this->roles) > 0)
@foreach ($this->roles as $index => $role) @endforeach
@endif
{{ __('filament-companies::default.buttons.add') }}
@endif @if ($company->companyInvitations->isNotEmpty() && Gate::check('addCompanyEmployee', $company)) {{ __('filament-companies::default.action_section_titles.pending_company_invitations') }} {{ __('filament-companies::default.action_section_descriptions.pending_company_invitations') }}
@foreach ($company->companyInvitations as $invitation) @endforeach
{{ __('filament-companies::default.fields.email') }}
{{ $invitation->email }}
@if (Gate::check('removeCompanyEmployee', $company)) {{ __('filament-companies::default.buttons.cancel') }} @endif
@endif @if ($company->users->isNotEmpty()) {{ __('filament-companies::default.action_section_titles.company_employees') }} {{ __('filament-companies::default.action_section_descriptions.company_employees') }}
@foreach ($company->users->sortBy('name') as $user) @endforeach
{{ __('filament-companies::default.fields.name') }}
{{ $user->name }}
@if (Gate::check('updateCompanyEmployee', $company) && Wallo\FilamentCompanies\FilamentCompanies::hasRoles()) {{ Wallo\FilamentCompanies\FilamentCompanies::findRole($user->employeeship->role)->name }} @elseif (Wallo\FilamentCompanies\FilamentCompanies::hasRoles()) {{ Wallo\FilamentCompanies\FilamentCompanies::findRole($user->employeeship->role)->name }} @endif @if ($this->user->id === $user->id) {{ __('filament-companies::default.buttons.leave') }} @elseif (Gate::check('removeCompanyEmployee', $company)) {{ __('filament-companies::default.buttons.remove') }} @endif
@endif {{ __('filament-companies::default.modal_titles.manage_role') }}
@foreach ($this->roles as $index => $role) @endforeach
@if($modals['cancelButtonAction']) {{ __('filament-companies::default.buttons.cancel') }} @endif {{ __('filament-companies::default.buttons.save') }}
{{ __('filament-companies::default.modal_titles.leave_company') }} {{ __('filament-companies::default.modal_descriptions.leave_company') }} @if($modals['cancelButtonAction']) {{ __('filament-companies::default.buttons.cancel') }} @endif {{ __('filament-companies::default.buttons.leave') }} {{ __('filament-companies::default.modal_titles.remove_company_employee') }} {{ __('filament-companies::default.modal_descriptions.remove_company_employee') }} @if($modals['cancelButtonAction']) {{ __('filament-companies::default.buttons.cancel') }} @endif {{ __('filament-companies::default.buttons.remove') }}