Files
Atomcms-edit/resources/themes/dusk/views/community/team-apply.blade.php
T
2026-05-09 17:32:17 +02:00

57 lines
2.8 KiB
PHP
Executable File

<x-app-layout>
@push('title', __('Staff'))
<div class="col-span-12 lg:col-span-9 lg:w-[96%]">
<x-content.staff-content-section :badge="$position->team->badge" :color="$position->team->staff_color">
<x-slot:title>
{{ __('You are applying for :position', ['position' => $position->team->rank_name]) }}
</x-slot:title>
<x-slot:under-title>
{{ __('Please fill out the fields below to apply for :position', ['position' => $position->team->rank_name]) }}
</x-slot:under-title>
<form class="flex flex-col gap-y-3" action="{{ route('team-applications.store', $position) }}" method="POST">
@csrf
<div>
<x-form.label for="username" disabled>{{ __('Username') }}</x-form.label>
<x-form.input classes="bg-gray-100" name="username" value="{{ auth()->user()->username }}" :readonly="true" />
</div>
<div>
<x-form.label for="content" disabled>{{ __('About you') }}</x-form.label>
<textarea name="content" class="focus:ring-0 border-4 border-gray-200 rounded dark:bg-gray-800 dark:border-gray-700 dark:text-gray-200 focus:border-[#eeb425] w-full min-h-[180px]">{{ old('content') }}</textarea>
@error('content')
<div class="text-red-600 text-sm mt-1">{{ $message }}</div>
@enderror
</div>
@if (setting('google_recaptcha_enabled'))
<div class="g-recaptcha" data-sitekey="{{ config('habbo.site.recaptcha_site_key') }}"></div>
@endif
@if (setting('cloudflare_turnstile_enabled'))
<x-turnstile />
@endif
<x-form.primary-button>
{{ __('Apply for :position', ['position' => $position->team->rank_name]) }}
</x-form.primary-button>
</form>
</x-content.staff-content-section>
</div>
<div class="col-span-12 lg:col-span-3 lg:w-[110%] space-y-4 lg:-ml-[32px]">
<x-content.content-card icon="hotel-icon" classes="border dark:border-gray-900">
<x-slot:title>{{ __('Applying for :position', ['position' => $position->team->rank_name]) }}</x-slot:title>
<x-slot:under-title>{{ __('Read before applying') }}</x-slot:under-title>
<div class="px-2 text-sm space-y-4 dark:text-gray-200">
<p>
{{ __('Please fill out all the fields to apply for :position. Be honest and transparent. Providing incorrect information may lead to removal if hired.', ['position' => $position->team->rank_name]) }}
</p>
</div>
</x-content.content-card>
</div>
</x-app-layout>