Files
Atomcms-edit/resources/themes/atom/views/index.blade.php
T
root 0b6f14d5bf Fix remaining issues: CDN config, min_staff_rank defaults, blade views
- Centralize all CDN URLs in config('habbo.cdn.*') with env overrides
- Replace hardcoded CDN URLs in 12+ blade views (fancybox, sweetalert2,
  alpinejs, fontsource, fontawesome, html2canvas)
- Fix font-awesome 7.0.0 (non-existent) -> config with 6.7.0 default
- Centralize all hardcoded min_staff_rank defaults (3 and 7) to config
- Add MIN_STAFF_RANK and MIN_STAFF_RANK_LOGIN env variables
2026-06-08 19:11:28 +02:00

46 lines
1.1 KiB
PHP
Executable File

<x-app-layout>
@push('title', __('Welcome to the best hotel on the web!'))
<div class="col-span-12 space-y-14">
<div class="col-span-12">
<x-content.guest-content-card icon="hotel-icon">
<x-slot:title>
{{ __('Latest news') }}
</x-slot:title>
<x-slot:under-title>
{{ __('Keep up to date with the latest hotel gossip.') }}
</x-slot:under-title>
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
@forelse($articles as $article)
<x-article-card :article="$article" />
@empty
<x-filler-article-card />
@endforelse
</div>
</x-content.guest-content-card>
</div>
@if($photos)
<div class="col-span-12">
<x-content.guest-content-card icon="camera-icon">
<x-slot:title>
{{ __('Latest Photos') }}
</x-slot:title>
<x-slot:under-title>
{{ __('Have a look at some of the great moments captured by users around the hotel.') }}
</x-slot:under-title>
<x-photos :photos="$photos" />
</x-content.guest-content-card>
</div>
@endif
</div>
@push('javascript')
<script src="{{ config('habbo.cdn.fancybox_js') }}"></script>
@endpush
<link rel="stylesheet" href="{{ config('habbo.cdn.fancybox_css') }}" />
</x-app-layout>