@php
$readPermission =0;
$writePermission = 0;
$createPermission =0 ;
$deletePermission = 0;
foreach ($permissions as $permission){
if($permission->role_id == 1){
if($permission->permission_id == 1){
$readPermission =1 ;
}
if($permission->permission_id == 2){
$writePermission =1 ;
}
if($permission->permission_id == 3){
$createPermission =1 ;
}
if($permission->permission_id == 4){
$deletePermission = 1;
}
}
}
@endphp
Admin |
@if($readPermission == 1)
@else
@endif
|
@if($writePermission == 1)
@else
@endif
|
@if($createPermission == 1)
@else
@endif
|
@if($deletePermission == 1)
@else
@endif
|
@php
$readPermission =0;
$writePermission = 0;
$createPermission =0 ;
$deletePermission = 0;
foreach ($permissions as $permission){
if($permission->role_id == 2){
if($permission->permission_id == 1){
$readPermission =1 ;
}
if($permission->permission_id == 2){
$writePermission =1 ;
}
if($permission->permission_id == 3){
$createPermission =1 ;
}
if($permission->permission_id == 4){
$deletePermission = 1;
}
}
}
@endphp
Staff |
@if($readPermission == 1)
@else
@endif
|
@if($writePermission == 1)
@else
@endif
|
@if($createPermission == 1)
@else
@endif
|
@if($deletePermission == 1)
@else
@endif
|
@php
$readPermission =0;
$writePermission = 0;
$createPermission =0 ;
$deletePermission = 0;
foreach ($permissions as $permission){
if($permission->role_id == 3){
if($permission->permission_id == 1){
$readPermission =1 ;
}
if($permission->permission_id == 2){
$writePermission =1 ;
}
if($permission->permission_id == 3){
$createPermission =1 ;
}
if($permission->permission_id == 4){
$deletePermission = 1;
}
}
}
@endphp
Author |
@if($readPermission == 1)
@else
@endif
|
@if($writePermission == 1)
@else
@endif
|
@if($createPermission == 1)
@else
@endif
|
@if($deletePermission == 1)
@else
@endif
|
@php
$readPermission =0;
$writePermission = 0;
$createPermission =0 ;
$deletePermission = 0;
foreach ($permissions as $permission){
if($permission->role_id == 3){
if($permission->permission_id == 1){
$readPermission =1 ;
}
if($permission->permission_id == 2){
$writePermission =1 ;
}
if($permission->permission_id == 3){
$createPermission =1 ;
}
if($permission->permission_id == 4){
$deletePermission = 1;
}
}
}
@endphp
Contributor |
@if($readPermission == 1)
@else
@endif
|
@if($writePermission == 1)
@else
@endif
|
@if($createPermission == 1)
@else
@endif
|
@if($deletePermission == 1)
@else
@endif
|
@php
$readPermission =0;
$writePermission = 0;
$createPermission =0 ;
$deletePermission = 0;
foreach ($permissions as $permission){
if($permission->role_id == 4){
if($permission->permission_id == 1){
$readPermission =1 ;
}
if($permission->permission_id == 2){
$writePermission =1 ;
}
if($permission->permission_id == 3){
$createPermission =1 ;
}
if($permission->permission_id == 4){
$deletePermission = 1;
}
}
}
@endphp
User |
@if($readPermission == 1)
@else
@endif
|
@if($writePermission == 1)
@else
@endif
|
@if($createPermission == 1)
@else
@endif
|
@if($deletePermission == 1)
@else
@endif
|