@php if (!isset($type)) { throw new Exception('type required. type must be string. as like [edit or delete or show or restore]', 500); } @endphp @if ($type === 'show')
@endif @if ($type === 'edit') @endif @if ($type === 'delete') @endif @if ($type === 'restore') @endif @if ($type === 'destroy-permanently') @endif