@push('title', __('Staff'))
@forelse($positions as $position) @continue(!$position->team) @php $status = auth()->check() ? ($userAppStatuses[$position->team->id] ?? null) // 'pending'|'approved'|'rejected'|null : null; $statusLabel = $status ? ucfirst($status) : null; $statusColorClasses = match ($status) { 'approved' => 'bg-green-100 text-green-800 dark:bg-green-900/40 dark:text-green-300 border-green-200 dark:border-green-800', 'pending' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900/40 dark:text-yellow-300 border-yellow-200 dark:border-yellow-800', 'rejected' => 'bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-300 border-red-200 dark:border-red-800', default => '', }; @endphp {{ $position->team->rank_name }} @if ($statusLabel) {{ $statusLabel }} @endif {{ $position->team?->job_description }}
{!! $position->description !!}
{{ __('Application Deadline :date', ['date' => $position->apply_to ? $position->apply_to->format('F j, Y, g:i A') : __('No deadline set')]) }}
@auth @if ($status) {{-- Already applied: show a disabled button indicating status --}} @switch($status) @case('pending') {{ __('Your application is pending') }} @break @case('approved') {{ __('You have been approved') }} @break @case('rejected') {{ __('Your application was rejected') }} @break @default {{ __('Application submitted') }} @endswitch @else {{-- No application yet: show Apply --}} {{ __('Apply for :position', ['position' => $position->team->rank_name]) }} @endif @else {{ __('Login to apply') }} @endauth
@empty {{ __('No team positions open') }} {{ __('There are currently no open team positions') }}

{{ __('Please come back later to check for new openings. Thank you!') }}

@endforelse
{{ __('Apply for :hotel Team', ['hotel' => setting('hotel_name')]) }} {{ __('Select a team to get started') }}

{{ __('We open team applications periodically. If you see a team you fit, do not hesitate to apply!') }}