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
103 lines
4.8 KiB
PHP
Executable File
103 lines
4.8 KiB
PHP
Executable File
<x-app-layout>
|
|
@push('title', 'Create a ticket')
|
|
|
|
<div class="col-span-12 lg:col-span-9">
|
|
<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 h-12" 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 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);">
|
|
<svg class="w-5 h-5 text-white" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
</svg>
|
|
</div>
|
|
<div>
|
|
<p class="text-white font-bold text-sm">{{ __('Create a ticket') }}</p>
|
|
<p class="text-xs" style="color: rgba(255,255,255,0.8)">{{ __('Please describe your request below') }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="p-4">
|
|
<form action="{{ route('help-center.ticket.store') }}" method="POST">
|
|
@csrf
|
|
|
|
<select name="category_id" id="category_id"
|
|
class="focus:ring-0 border rounded-lg w-full text-sm px-3 py-2.5"
|
|
style="background-color: var(--color-background); border-color: color-mix(in srgb, var(--color-text-muted) 20%, transparent); color: var(--color-text); @error('category_id') border-color: #ef4444 !important; @enderror">
|
|
@foreach($categories as $category)
|
|
<option value="{{ $category->id }}">
|
|
{{ $category->name }}
|
|
</option>
|
|
@endforeach
|
|
</select>
|
|
|
|
<div class="mt-4">
|
|
<label class="block text-sm font-semibold mb-1" style="color: var(--color-text);">
|
|
{{ __('Title') }}
|
|
</label>
|
|
|
|
<input name="title" type="text" value="{{ old('title') }}"
|
|
placeholder="{{ __('Enter a title for your ticket') }}"
|
|
class="focus:ring-0 border rounded-lg w-full text-sm px-3 py-2.5"
|
|
style="background-color: var(--color-background); border-color: color-mix(in srgb, var(--color-text-muted) 20%, transparent); color: var(--color-text);">
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<x-form.wysiwyg-editor />
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<button type="submit"
|
|
class="px-4 py-2 rounded-lg text-sm font-semibold transition ease-in-out duration-150"
|
|
style="background-color: var(--color-primary); color: var(--button-text-color);">
|
|
{{ __('Submit ticket') }}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-span-12 lg:col-span-3">
|
|
<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 h-12" 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 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);">
|
|
<svg class="w-5 h-5 text-white" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
|
</svg>
|
|
</div>
|
|
<div>
|
|
<p class="text-white font-bold text-sm">{{ __('Open tickets') }}</p>
|
|
<p class="text-xs" style="color: rgba(255,255,255,0.8)">{{ __('Your current open tickets') }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="p-4">
|
|
<div class="flex flex-col gap-2">
|
|
@forelse($openTickets as $ticket)
|
|
<div class="w-full rounded-lg p-2" style="background-color: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));">
|
|
<div class="flex items-center gap-x-1">
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
|
|
stroke="currentColor" class="w-4 h-4" style="color: var(--color-text-muted);">
|
|
<path stroke-linecap="round" stroke-linejoin="round"
|
|
d="M11.25 4.5l7.5 7.5-7.5 7.5m-6-15l7.5 7.5-7.5 7.5"/>
|
|
</svg>
|
|
|
|
<a data-turbolinks="false" href="{{ route('help-center.ticket.show', $ticket) }}" class="text-sm hover:underline" style="color: var(--color-text);">
|
|
{{ Str::limit($ticket->title, 20) }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
@empty
|
|
<p class="text-sm" style="color: var(--color-text-muted);">
|
|
{{ __('You currently have no open tickets.') }}
|
|
</p>
|
|
@endforelse
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|