{{-- Logged-in users get the dashboard shell; visitors the public site chrome. --}} @extends(auth()->check() ? 'layouts.dashboard' : 'layouts.app') @section('title', __('Events')) @section('page_title', __('Events')) @php $typeColors = ['webinar' => 'primary', 'workshop' => 'success', 'seminar' => 'info', 'offline' => 'secondary']; @endphp @section('content')
@include('partials.how-it-works', ['key' => 'events.index'])
{{ __('Upcoming Events') }}
@forelse($events as $event)
@if($event->image) {{ $event->title }} @else
@endif
{{ status_label($event->event_type) }} @if($event->price > 0) {{ money($event->price) }} @else {{ __('Free') }} @endif
{{ $event->title }}

{{ optional($event->start_time)->format('d M Y, h:i A') }}

@if($event->event_type === 'offline') {{ $event->location ?: __('Location TBA') }} @else {{ __('Online') }} @endif

{{ __('View & Register') }}
@empty
{{ __('No upcoming events at the moment.') }}
@endforelse
{{ $events->links() }}
@endsection