@extends('layouts.admin') @section('page', 'Profile') @section('navigation')
ID: #{{ $user->id }}
First Name: {{ $user->firstname }}
Sur Name: {{ $user->surname }}
Roles: @php($roles = $user->roles->sortBy('index')->all()) @if(!empty($roles)) {!! implode(' ', array_map(function ($v, $k) { return ''.$v->readable_name.''; }, $roles, array_keys($roles))) !!} @else None @endif
Permissions: @php($permissions = $user->permissions->all()) @if(!empty($permissions)) {!! implode(' ', array_map(function ($v, $k) { return ''.$v->name.''; }, $permissions, array_keys($permissions))) !!} @else None @endif