@foreach (['list', 'create', 'edit', 'show', 'delete', 'all lead', 'index', 'removeagent', 'assign', 'upload', 'detail'] as $action)
@php
$permissionKey = array_search(
$module . ' ' . $action,
(array) $permissions,
);
@endphp
@if ($permissionKey !== false)
@endif
@endforeach