@extends('dashboard.layout.master') @section('content')
@include('dashboard.layout.navbar') @php $current_user = Auth::user(); if ($current_user) { $allow_access = DB::table('users') ->join('roles', 'users.role', '=', 'roles.id') ->where('users.id', '=', $current_user->id) ->first(); } $role_management = json_decode($allow_access->role_management); array_unshift($role_management, 0); @endphp
Role List
Create Role
@if($role_management[3] == 27 || $role_management[4] == 28) @endif @foreach($role as $item) @if($role_management[3] == 27 || $role_management[4] == 28) @endif @endif @endforeach
S no Role NameActions
{{$loop->index + 1}} {{$item->name}}@if($role_management[3] == 27)Edit@endif @if($role_management[4] == 28) {{$item->status=='0' ? 'Active' : 'Inactive'}}
@if(session('error')) @endif @if(session('success')) @endif @endsection