@extends('admin.layout.app') @section('body')

Staff Member: {{ $user->name }}

{{ $user->email }}
{{ __('admin.id_2') }} {{ $user->id }}
{{ __('admin.name_3') }} {{ $user->name }}
{{ __('admin.email_2') }} {{ $user->email }}
Phone: {{ $user->phone ?: '—' }}
Type: {{ $user->employee_type ? ucfirst($user->employee_type) : '—' }}
Status: {{ $user->employment_status ? ucfirst(str_replace('_', ' ', $user->employment_status)) : '—' }}
Department: {{ $user->department ?: '—' }}
Qualification: {{ $user->qualification ?: '—' }}
Specialization: {{ $user->specialization ?: '—' }}
Joining Date: {{ optional($user->joining_date)->format('Y-m-d') ?: '—' }}
Salary Type: {{ $user->salary_type ? ucfirst($user->salary_type) : '—' }}
Monthly Salary: {{ $user->monthly_salary ? number_format((float) $user->monthly_salary, 2) : '—' }}
Address: {{ $user->address ?: '—' }}
Payroll Notes: {{ $user->payroll_notes ?: '—' }}
{{ __('admin.roles') }}
@php $rs = method_exists($user,'roles') ? $user->roles : collect(); @endphp @if($rs->count()) @foreach($rs as $r) {{ $r->name }} @endforeach @else
{{ __('admin.no_roles_assigned') }}
@endif
@endsection