@php use Spatie\Permission\Models\Role; $getroles = Role::get(); @endphp @extends('portal_pages.layouts.master') @section('content')
@if (session()->has('success'))
@if(is_array(session('success')))
    @foreach (session('success') as $message)
  • {{ $message }}
  • @endforeach
@else {{ session('success') }} @endif
@endif
@foreach($get_users as $user) @endforeach
Name Email Role Role Permissions Created Date Update Date Action

user {{$user->name}}

{{$user->email}}
    @if($user->roles) @foreach($user->roles as $role)
  • {{ $role->name }}
  • @endforeach @else
  • X
  • @endif
    @foreach($user->getPermissionsViaRoles() as $permission)
  • {{ $permission->name }}
  • @endforeach
{{$user->created_at}} {{$user->updated_at}}
@endsection