@if ($category) {!! Form::open(['url' => 'admin/world/event-categories/delete/' . $category->id]) !!}

You are about to delete the event category {{ $category->name }}. This is not reversible.

If you would like to hide the category from users, you can set it as inactive from the event category settings page.

@if (count($category->events))
If you delete this category, you will also delete:
@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.
@endif

Are you sure you want to delete {{ $category->name }}?

{!! Form::submit('Delete Event Category', ['class' => 'btn btn-danger w-100']) !!}
{!! Form::close() !!} @else Invalid event category selected. @endif