@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')
@csrf @method('DELETE')
@endif @if ($type === 'restore')
@csrf @method('PATCH')
@endif @if ($type === 'destroy-permanently')
@csrf @method('DELETE')
@endif