{{ Form::label('name', __('messages.user.name').':', ['class' => 'font-weight-bold']) }}

{{ html_entity_decode($user->name) }}

{{ Form::label('name', __('messages.user.phone').':', ['class' => 'font-weight-bold']) }}

{{ !empty($user->phone)?$user->phone:'N/A' }}

{{ Form::label('name', __('messages.user.email').':', ['class' => 'font-weight-bold']) }}

{{ $user->email }}

{{ Form::label('name', __('messages.user.salary').':', ['class' => 'font-weight-bold']) }}

{{ !empty($user->salary)?number_format($user->salary,2):'N/A' }}

{{ Form::label('name',__('messages.user.role').':', ['class' => 'font-weight-bold']) }}

{{ html_entity_decode($user->roleNames) }}

{{ Form::label('open_tasks', __('messages.task.pending').' '.__('messages.tasks').':', ['class' => 'font-weight-bold']) }}

{{ $user->userActiveTask->count() }}

{{ Form::label('name', __('messages.invoice.status').':', ['class' => 'font-weight-bold']) }}

{{ ($user->is_active)?__('messages.user.active'):__('messages.user.deactive') }}

{{ Form::label('created_at', __('messages.common.created_on').(':'),['class'=>'font-weight-bold']) }}
{{ $user->created_at->diffForHumans() }}
{{ Form::label('created_at', __('messages.common.last_updated').(':'),['class'=>'font-weight-bold']) }}
{{ $user->updated_at->diffForHumans() }}
{{ Form::label('attachment', __('messages.user.profile').':', ['class' => 'font-weight-bold']) }}
@if(!empty($user->img_avatar)) @else {{'N/A'}} @endif
{{ Form::label('name', __('messages.user.project').':', ['class' => 'font-weight-bold']) }}
@forelse($user->projects->pluck('name') as $project) {{$loop->first ? '':', '}} {{html_entity_decode($project)}} @empty {{ __('messages.common.n/a') }} @endforelse