@extends('admin.layout', ['menuKey' => 'organizations']) @section('title', $org->display_name) @php $checks = (array) $org->checks; $icon = ['pass' => ['on', 'OK'], 'fail' => ['bad', 'No'], 'warn' => ['wait', 'Check'], 'info' => ['off', '–']]; $catalog = config('badges.catalog'); $rows = $org->badges->keyBy('badge'); @endphp @section('content')
Employers · #{{ $org->id }}

{{ $org->display_name }} {{ $org->statusLabel() }}

{{ $org->domains->pluck('domain')->implode(', ') ?: ($org->is_webmail ? 'Started from a Gmail-type address' : 'No domain') }} · first post {{ $org->first_post_at?->format('M j, Y') ?? 'none yet' }} @if ($org->is_internal) · internal (never a founding number)@endif @if ($org->foundingLabel()) · {{ $org->foundingLabel() }}@endif @if ($org->profileUrl()) · employer page@endif

Waiting list
@include('partials.errors') {{-- Decision --}}

Verification · signals: {{ ['strong' => 'strong', 'some' => 'some', 'none' => 'weak'][$strength] }}{{ $org->checked_at ? ', checked '.$org->checked_at->diffForHumans() : ', not checked yet' }}

They prove control of the domain with the TXT record {{ $txt }} or a file at /.well-known/healthcareers-verify.txt containing {{ $org->verify_token }}.

@if ($org->review_note)

Note: {{ $org->review_note }}

@endif
@csrf
@if (! $org->isVerified())
@csrf
@endif @if ($org->status !== 'rejected')
@csrf
@endif @if ($org->isVerified())
@csrf
@endif
{{-- Details --}}
@csrf

Details

/employers/{{ $org->slug }}
{{-- Founding and badges --}}

Founding number

{{ $org->foundingLabel() ?? 'None.' }}@if ($org->founding_at) since {{ $org->founding_at->format('M j, Y') }}@endif

@if (! $org->founding_number)
@csrf
@endif
@csrf
@if ($org->founding_number)
@csrf
@endif

Badges

@if ($shown)

@include('partials.org-badges', ['org' => $org])

@else

Badges show once the organization is verified.

@endif @foreach ($catalog as $key => $b) @php $row = $rows[$key] ?? null; $on = $row && $row->isActive(); @endphp @endforeach
{{ $b['label'] }}
{{ $b['kind'] === 'manual' ? 'Given by you' : 'Automatic' }}{{ $row && $row->locked ? ' · set by you' : '' }}
{!! $on ? 'Yes' : 'No' !!}
@csrf
@if ($row && $row->locked && $b['kind'] === 'auto')
@csrf
@endif
{{-- Team --}}

Team

@foreach ($org->members->sortBy(fn ($m) => [-\App\Services\Orgs\Organizations::ROLE_ORDER[$m->role], $m->email]) as $m) @endforeach
EmailRoleStatus
{{ $m->email }}
@csrf
{{ $m->status === 'removed' ? 'Removed' : ($m->status === 'invited' ? 'Invited' : ($m->confirmed_at ? 'Confirmed '.$m->confirmed_at->format('M j, Y') : 'Not confirmed')) }} @if ($m->status !== 'removed')
@csrf
@endif
@csrf

Domains

@forelse ($org->domains as $d)

{{ $d->domain }} {{ $d->verified_at ? 'verified ('.$d->method.')' : 'not verified' }} @unless ($d->verified_at)

@csrf
@endunless
@csrf

@empty

None.

@endforelse
@csrf

Posts from an address at these domains join this organization.

Merge a duplicate

Moves this organization's posts, campaigns, team, domains and badges into another organization, and removes this one.

@csrf

Job packs · {{ \App\Services\Posting\JobPacks::balance($org->id) }} posts left

@if ($packs->isNotEmpty())
@foreach ($packs as $pk) @endforeach
#PackUsedLeftEndsStatus
{{ $pk->id }} {{ $pk->size }} posts · {{ $pk->granted_by ? 'given by '.$pk->granted_by : \App\Support\Pricing::money((int) $pk->price_cents).' by '.$pk->bought_by }}@if ($pk->order_id) · order #{{ $pk->order_id }}@endif @if ($pk->note)
{{ $pk->note }}@endif
{{ $pk->used }}{{ $pk->remaining() }} {{ $pk->expires_at->format('M j, Y') }} {{ $pk->statusLabel() }} @if ($pk->status === 'disputed')
@csrf
@endif @if ($pk->status === 'active')
@csrf
@endif

Refund unused posts from the pack's order (Orders): at most its unused posts × its price per post.

@endif
@csrf months

Job posts

@if ($posts->isEmpty())

None.

@else
@foreach ($posts as $p) @endforeach
#JobPosted byStatus
{{ $p->id }} {{ $p->title }}
{{ $p->org_name }} · {{ $p->locationLabel() }}
{{ $p->poster_email }} @if ($p->isLive())Live@elseif ($p->status === 'review')Review@if ($p->flags->isNotEmpty())
{{ $p->flags->pluck('reason')->map(fn ($r) => str_replace('_', ' ', $r))->implode(', ') }}@endif @else{{ ucfirst($p->status) }}@endif
@endif @if ($campaigns->isNotEmpty())

Ad campaigns

@endif
@include('admin._history', ['type' => 'organization', 'id' => $org->id]) @endsection