@extends('worldexpansion.layout')
@section('title')
{{ $category->name }} Event
@endsection
@section('content')
{!! breadcrumbs(['World' => 'world', 'Event Categories' => 'world/event-categories', $category->name => 'world/event-categories/' . $category->id]) !!}
{!! $category->displayName !!}
@if ($category->image_extension)
@endif
@if (count($category->events))
{{ $category->name }} Event{{ count($category->events) == 0 ? '(' . count($category->events) . ')' : 's (' . count($category->events) . ')' }}
@foreach ($category->events as $key => $event)
{!! $event->displayName !!}
@if ($key != count($category->events) - 1 && count($category->events) > 2)
,
@endif @if ($key == count($category->events) - 2)
and
@endif
@endforeach
@else
There aren't any {{ $category->name }} Events yet
@endif
@isset($category->summary)
{!! $category->summary !!}
@endisset
@isset($category->parsed_description)
{!! $category->parsed_description !!}
@endisset
@endsection