@if ($category)
{!! Form::open(['url' => 'admin/world/figure-categories/delete/' . $category->id]) !!}
You are about to delete the figure 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 figure category settings page.
@if (count($category->figures))
If you delete this category, you will also delete:
@foreach ($category->figures as $key => $figure)
{!! $figure->displayName !!}
@if ($key != count($category->figures) - 1 && count($category->figures) > 2)
,
@endif @if ($key == count($category->figures) - 2)
and
@endif
@endforeach.
@endif
Are you sure you want to delete {{ $category->name }}?
{!! Form::submit('Delete Figure Category', ['class' => 'btn btn-danger w-100']) !!}
{!! Form::close() !!}
@else
Invalid figure category selected.
@endif