@extends('layouts.layoutMaster') @section('title', 'User Detail') @php $breadcrumbs = [ ['url' => route('dashboard'), 'label' => 'Dashboard'], ['url' => route('user.index'), 'label' => 'User'], ['url' => route('user.show', ['user' => $model->id]), 'label' => $model->name], ]; @endphp @section('content')
User Details
@can('user.update') Edit @endcan
Full Name {{ $model->name }}
Username {{ $model->username }}
Role @if ($model->roles->count() > 0) @foreach ($model->roles as $role) {{ $role->name }} @endforeach @else - @endif
Created: {{ $model->created_at?->format('d/m/Y H:i') ?? '-' }} @if ($model->createdBy) by {{ $model->createdBy->name }} @endif
Last Updated: {{ $model->updated_at?->format('d/m/Y H:i') ?? '-' }} @if ($model->updatedBy) by {{ $model->updatedBy->name }} @endif
@endsection