@extends('layouts.app') @section('content')

View Event/News

{{ $event->title }}

{{ ucfirst($event->type) }}
@if($event->status == 'upcoming') Upcoming @elseif($event->status == 'ongoing') Ongoing @else Completed @endif
{{ $event->formatted_event_date }} @if($event->start_time)
{{ \Carbon\Carbon::parse($event->start_time)->format('g:i A') }} @endif @if($event->end_time)
to {{ \Carbon\Carbon::parse($event->end_time)->format('g:i A') }} @endif
@if($event->location) {{ $event->location }} @else Not specified @endif
{!! nl2br(e($event->description)) !!}
@if($event->additional_info)
{!! nl2br(e($event->additional_info)) !!}
@endif
{{ $event->sort_order }}
@if($event->is_active) Active @else Inactive @endif
@if($event->is_featured) Featured @else Regular @endif
{{ $event->created_at->format('F j, Y \a\t g:i A') }}
{{ $event->updated_at->format('F j, Y \a\t g:i A') }}
@endsection