Files
Atomcms-edit/resources/themes/atom/views/help-center/tickets/edit.blade.php
T
root c53a5a8a2c Complete Hubbly theme conversion: all pages rewritten with CSS variable theming
- 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
2026-06-27 17:01:02 +02:00

108 lines
5.1 KiB
PHP
Executable File

<x-app-layout>
@push('title', 'Edit 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="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" />
</svg>
</div>
<div>
<p class="text-white font-bold text-sm">{{ __('Edit your 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.update', $ticket) }}" method="POST">
@method('PUT')
@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">
<option value="{{ $ticket->category_id }}" selected>
{{ $ticket->category->name }}
</option>
@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="{{ $ticket->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 :content="$ticket->content" />
</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);">
{{ __('Update 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>