You've already forked Atomcms-edit
c53a5a8a2c
- Converted all views from Dusk components (x-content.content-card, x-form.*) to inline Hubbly style - All pages use consistent card pattern: rounded-lg, gradient headers, color-mix borders - Added Hubbly-style homepage with 2-column layout, login card, swiper news carousel - Rewrote navigation with Alpine.js dropdowns, CSS variable colors, Hubbly assets - Updated profile page with Hubbly cards, fixed data bugs (friend/guild relationships) - Rewrote register page to match Hubbly layout: banner header, avatar preview with Frank GIF, 2-column form, avatar carousel selector, border-4 inputs - Rewrote login, settings, help center, radio, applications, utility pages - All colors use CSS variables controlled by Filament theme editor - Added Hubbly assets: banner, Frank GIF, navigation icons, online badge - Removed all dependencies on x-content.* and x-form.* components
128 lines
5.8 KiB
PHP
Executable File
128 lines
5.8 KiB
PHP
Executable File
<x-app-layout>
|
|
@push('title', __('Staff'))
|
|
|
|
<div class="col-span-12 lg:col-span-9 lg:w-[96%]">
|
|
<div class="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-2">
|
|
@forelse($positions as $position)
|
|
@continue(!$position->team)
|
|
@php
|
|
$status = auth()->check()
|
|
? ($userAppStatuses[$position->team->id] ?? 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
|
|
|
|
<div class="rounded-lg overflow-hidden" style="background-color: var(--color-surface); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
<div class="flex gap-x-2.5 p-3.5" style="border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);">
|
|
<div class="w-12 h-12 min-w-[3rem] rounded-full flex items-center justify-center" style="background-color: {{ $position->team->staff_color }}">
|
|
<img src="{{ asset(sprintf('%s/%s.gif', setting('badges_path'), $position->team->badge)) }}" alt="">
|
|
</div>
|
|
<div class="flex flex-col justify-center text-sm">
|
|
<p class="font-semibold" style="color: var(--color-text)">
|
|
<span class="inline-flex items-center gap-2">
|
|
{{ $position->team->rank_name }}
|
|
|
|
@if ($statusLabel)
|
|
<span class="inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium {{ $statusColorClasses }}">
|
|
{{ $statusLabel }}
|
|
</span>
|
|
@endif
|
|
</span>
|
|
</p>
|
|
<p style="color: var(--color-text-muted)">{{ $position->team?->job_description }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="p-3" style="color: var(--color-text)">
|
|
<div class="text-center">
|
|
<div class="mb-4 text-sm">
|
|
{!! $position->description !!}
|
|
</div>
|
|
<div class="mb-4 text-sm font-semibold">
|
|
{{ __('Application Deadline :date', ['date' => $position->apply_to ? $position->apply_to->format('F j, Y, g:i A') : __('No deadline set')]) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex justify-between">
|
|
@auth
|
|
@if ($status)
|
|
<button type="button" disabled class="rounded-lg px-4 py-2 text-sm font-semibold transition-all duration-200 hover:opacity-90 w-full justify-center" style="background-color: var(--color-background); color: var(--color-text); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
@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
|
|
</button>
|
|
@else
|
|
<a href="{{ route('team-applications.show', $position) }}" class="w-full">
|
|
<button type="submit" class="rounded-lg px-4 py-2 text-sm font-semibold transition-all duration-200 hover:opacity-90 w-full justify-center" style="background-color: var(--color-primary); color: var(--button-text-color);">
|
|
{{ __('Apply for :position', ['position' => $position->team->rank_name]) }}
|
|
</button>
|
|
</a>
|
|
@endif
|
|
@else
|
|
<a href="{{ route('login') }}" class="w-full">
|
|
<button type="button" class="rounded-lg px-4 py-2 text-sm font-semibold transition-all duration-200 hover:opacity-90 w-full justify-center" style="background-color: var(--color-background); color: var(--color-text); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
{{ __('Login to apply') }}
|
|
</button>
|
|
</a>
|
|
@endauth
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@empty
|
|
<div class="rounded-lg overflow-hidden col-span-full" style="background-color: var(--color-surface); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
<div class="relative w-full" style="background: linear-gradient(140deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 80%, black) 100%);">
|
|
<div class="flex items-center h-full px-4 py-3 gap-3">
|
|
<div class="w-8 h-8 rounded-full flex items-center justify-center text-lg shadow-lg" style="background-color: color-mix(in srgb, var(--color-primary) 30%, transparent);">
|
|
🏮
|
|
</div>
|
|
<div>
|
|
<p class="text-white font-bold text-sm">{{ __('No team positions open') }}</p>
|
|
<p class="text-xs" style="color: rgba(255,255,255,0.8)">{{ __('There are currently no open team positions') }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="p-4 text-sm space-y-4" style="color: var(--color-text)">
|
|
<p>{{ __('Please come back later to check for new openings. Thank you!') }}</p>
|
|
</div>
|
|
</div>
|
|
@endforelse
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-span-12 lg:col-span-3 lg:w-[110%] space-y-4 lg:-ml-[32px]">
|
|
<div class="rounded-lg overflow-hidden" style="background-color: var(--color-surface); border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
|
|
<div class="relative w-full" style="background: linear-gradient(140deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 80%, black) 100%);">
|
|
<div class="flex items-center h-full px-4 py-3 gap-3">
|
|
<div class="w-8 h-8 rounded-full flex items-center justify-center text-lg shadow-lg" style="background-color: color-mix(in srgb, var(--color-primary) 30%, transparent);">
|
|
💬
|
|
</div>
|
|
<div>
|
|
<p class="text-white font-bold text-sm">{{ __('Apply for :hotel Team', ['hotel' => setting('hotel_name')]) }}</p>
|
|
<p class="text-xs" style="color: rgba(255,255,255,0.8)">{{ __('Select a team to get started') }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="p-4 text-sm space-y-4" style="color: var(--color-text)">
|
|
<p>{{ __('We open team applications periodically. If you see a team you fit, do not hesitate to apply!') }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|