@extends('front.layouts.app') @php use Illuminate\Support\Facades\Storage; @endphp @section('main') @include('front.sections.content-hero')
@if($events->isEmpty())
{{ $uiLabels['msg_no_event'] ?? 'Etkinlik bulunamadı.' }}
@endif @php \Carbon\Carbon::setLocale('tr'); $eventsBase = app()->getLocale() === 'en' ? 'events' : 'etkinlikler'; @endphp @foreach($events as $event)
@php $fallbacks = [ 'img/event-1.png', 'img/event-2.png', 'img/event-3.png', 'img/event-4.png', 'img/event-5.png', 'img/event-6.png', 'img/event-7.png', ]; $randomImage = $fallbacks[array_rand($fallbacks)]; @endphp @if($event->thumbnail && Storage::disk('public')->exists($event->thumbnail)) {{ $event->title }} @else {{ $event->title }} @endif
@endforeach

{{ $uiLabels['categories'] ?? 'Kategoriler' }}


{{ $uiLabels['tags'] ?? 'Etiketler' }}

@foreach($allTags as $tag) @endforeach
@endsection