@props(['user' => [], 'showRole' => true, 'showStats' => false, 'actions' => []])

{{ $user['name'] ?? '' }}

@if($showRole && isset($user['role'])) {{ ucfirst($user['role']) }} @endif
@if(isset($user['email']))

{{ $user['email'] }}

@endif
@if($showStats && isset($user['stats']))
@foreach($user['stats'] as $stat)

{{ $stat['value'] ?? '' }}

{{ $stat['label'] ?? '' }}

@endforeach
@endif @if(count($actions) > 0)
@foreach($actions as $action) {{ $action['label'] ?? '' }} @endforeach
@endif