@extends('admin.layout.layout') @section('content') Employees
{{ $title }}
Back
@if ($errors->any()) @endif @if (Session::has('error_message')) @endif @if (Session::has('success_message')) @endif @if($employees->type != "admin")
@csrf @if(!empty($employeeRoles)) @foreach($employeeRoles as $role) @if($role['module']=="employees") @if($role['view_access']==1) @php $viewEmployees = "checked" @endphp @else @php $viewEmployees = "" @endphp @endif @if($role['edit_access']==1) @php $editEmployees = "checked" @endphp @else @php $editEmployees = "" @endphp @endif @if($role['full_access']==1) @php $fullEmployees = "checked" @endphp @else @php $fullEmployees = "" @endphp @endif @endif @if($role['module']=="categories") @if($role['view_access']==1) @php $viewCategories = "checked" @endphp @else @php $viewCategories = "" @endphp @endif @if($role['edit_access']==1) @php $editCategories = "checked" @endphp @else @php $editCategories = "" @endphp @endif @if($role['full_access']==1) @php $fullCategories = "checked" @endphp @else @php $fullCategories = "" @endphp @endif @endif @endforeach @endif
 View Access       View/Edit Access       Full Access     
@else
Cannot Set Roles & Permissions for Admins.
@endif
@endsection