@extends('admin.layout') @section('content')

User {{$user->name}}

@canBeImpersonated($user) Impersonate this user @endCanBeImpersonated
@if(!empty($errors->all()))
@foreach ($errors->all() as $error) {{ $error }}
@endforeach
@endif @if (session('message'))
{{ session('message') }}
@endif
User id {{$user->id}}
Name {{$user->name}}
Email {{$user->email}}
Created at {{ !empty($user->created_at) ? date_format($user->created_at,"Y/m/d") : null }}
Updated at {{ !empty($user->updated_at) ? date_format($user->updated_at,"Y/m/d") : null }}
Created by @if( !empty($user->user)) {{$user->user->email}} @endif

Projects

@if( count($user->projects) != 0 ) @foreach ($user->projects as $project) @endforeach @else @endif
Project id Name Created at Actions
{{ $project->id }} {{ $project->name }} {{ !empty($project->created_at) ? date_format($project->created_at,"Y/m/d") : null }} View
No record found
@endsection