You've already forked Atomcms-edit
f29ba72591
Security:
- Replace unescaped {!! !!} with Purify::clean() in 15+ Blade templates (XSS)
- Add rate limiting to register (3/hr), upload (10/min), SSE (6/min)
- Add max:5000 validation on article comments
- Remove duplicate exception handler callback
Hardcoded paths:
- Replace ~44 /var/www/ hardcoded paths with env() configs
- CatalogService (13), AutoDetectService (18), Commandocentrum (11), AppServiceProvider (2)
Performance:
- Add 10 missing database indexes (radio_song_requests, help_center_tickets, etc.)
- Replace Cache::flush() with targeted Cache::forget() in RadioSettings
- Cache getCachedCategories() in TicketController (N+1 fix)
- Remove redundant top-3 leaderboard query
Bug fixes:
- Fix undefined $enabled variable → $isOnline in radio index view
- Add getAvatarAttribute() accessor for non-existent avatar column
- Fix User::guilds() from wrong HasMany to HasManyThrough
Code quality:
- Replace file_get_contents with Http::timeout(10) in TraxService
- Remove commented Echo/Pusher boilerplate in bootstrap.js
- Remove TODO/FIXME comments from logo-generator templates
- Replace hardcoded Turnstile CDN URL with config()
- Restore QUEUE_CONNECTION=redis in .env.example files
52 lines
2.5 KiB
PHP
Executable File
52 lines
2.5 KiB
PHP
Executable File
<x-app-layout>
|
|
@push('title', auth()->user()->username)
|
|
|
|
<div class="col-span-12 flex flex-col lg:flex-row gap-4">
|
|
<div class="flex flex-col gap-4 w-full lg:w-3/5">
|
|
@foreach($categories->where('small_box', false) as $category)
|
|
<x-content.content-card icon="duo-chat-icon" classes="border border-gray-900">
|
|
<x-slot:title>
|
|
{{ $category->name }}
|
|
</x-slot:title>
|
|
|
|
<div class="px-2 text-sm text-gray-200">
|
|
<img class="px-2" style="float: right !important;"
|
|
src="{{ asset('/assets/images/help-center/' . $category->image_url) }}" alt="">
|
|
{{ \Stevebauman\Purify\Facades\Purify::clean($category->content) }}
|
|
</div>
|
|
|
|
<a data-turbolinks="false" href="{{ $category->button_url ?? '#' }}" class="mt-4 ml-2">
|
|
<button
|
|
style="background-color: {{ $category->button_color }}; border: {{ $category->button_border_color }} solid 2px;"
|
|
class="px-2 py-1 text-white font-semibold rounded transition hover:scale-105">
|
|
{{ $category->button_text }}
|
|
</button>
|
|
</a>
|
|
</x-content.content-card>
|
|
@endforeach
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-4 w-full lg:w-2/5">
|
|
@foreach($categories->where('small_box', true) as $category)
|
|
<x-content.content-card icon="duo-chat-icon" classes="border border-gray-900">
|
|
<x-slot:title>
|
|
{{ $category->name }}
|
|
</x-slot:title>
|
|
|
|
<div class="px-2 text-sm text-gray-200">
|
|
{{ \Stevebauman\Purify\Facades\Purify::clean($category->content) }}
|
|
</div>
|
|
|
|
<a data-turbolinks="false" href="{{ $category->button_url ?? '#' }}" class="mt-4 ml-2">
|
|
<button
|
|
style="background-color: {{ $category->button_color }}; border: {{ $category->button_border_color }} solid 2px;"
|
|
class="px-2 py-1 text-white font-semibold rounded transition hover:scale-105">
|
|
{{ $category->button_text }}
|
|
</button>
|
|
</a>
|
|
</x-content.content-card>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|