@extends('layouts.main-app') @section('title', 'SMN Events') @section('content')
@include('layouts.header') {{-- news article--}}
{{-- --}} {{ isset($eventsDetails) ? $eventsDetails->title : 'Featured Event' }}
@if(isset($eventsDetails) && $eventsDetails->image) @foreach(json_decode($eventsDetails->image) as $index => $image) Thumbnail {{ $index + 1 }} @endforeach @endif
<
>
{{-- description --}}

{!! isset($eventsDetails) && $eventsDetails->description ? $eventsDetails->description : 'No description available' !!}

{{-- date --}}
📅 {{ isset($eventsDetails) && $eventsDetails->event_date ? $eventsDetails->event_date->format('d M Y') : 'Date TBA' }}
{{-- title --}}

{{ isset($eventsDetails) ? $eventsDetails->title : 'No Event Title' }}

{{-- location --}}
📍 {{ isset($eventsDetails) ? $eventsDetails->location : 'No Event Location' }}
@foreach($eventCategories as $category) @endforeach
@foreach($events as $event)
{{ $event->title }}
📅 {{ $event->event_date->format('d M Y') }} ⏰ {{ $event->event_time }}

{{ $event->title }}

{{--

{{ $event->category->name }}

{{ $event->description }}

--}}
📍 {{ $event->location }}
@endforeach
@if ($events->onFirstPage()) @else @endif @for ($i = 1; $i <= $events->lastPage(); $i++) @if ($i == $events->currentPage()) {{ $i }} @else {{ $i }} @endif @endfor @if ($events->hasMorePages()) @else @endif
{{-- --}}
@endsection