{{-- Division --}} @can('division view') @endcan {{-- District --}} @can('district view') @endcan {{-- Tehsil --}} @can('tehsil view') @endcan {{-- Component A --}} @php $componentAPermissions = [ 'water pond view', 'check dam view', 'water reservoir view', 'stream bank stabilization view', 'gated field inlet view', 'terracing view', 'micro watershed development view', 'water seepage harvesting galleries view', 'agronomic low cost interventions view' ]; @endphp @if(auth()->user()->hasAnyPermission($componentAPermissions))
@can('water pond view') @endcan @can('check dam view') @endcan @can('water reservoir view') @endcan @can('stream bank stabilization view') @endcan @can('gated field inlet view') @endcan @can('terracing view') @endcan @can('micro watershed development view') @endcan @can('water seepage harvesting galleries view') @endcan @can('agronomic low cost interventions view') @endcan
@endif {{-- Component B --}} @php $componentBPermissions = [ 'installation of tube wells view', 'solarization of agricultural tube wells view' ]; @endphp @if(auth()->user()->hasAnyPermission($componentBPermissions))
@can('installation of tube wells view') @endcan @can('solarization of agricultural tube wells view') @endcan
@endif {{-- User Manage --}} @php $userManagePermissions = ['user view', 'role view']; @endphp @if(auth()->user()->hasAnyPermission($userManagePermissions))
@can('role view') @endcan @can('user view') @endcan
@endif {{-- Import --}} @can('import data') @endcan @can('report view') @endcan