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