@extends('layouts.app') @section('title', __('app.profile.title') . ' - PMMS') @section('content')

{{ __('app.profile.heading') }}

{{ __('app.profile.account_header') }}
{{ __('app.profile.username') }}
{{ $user->username }}
{{ __('app.profile.full_name') }}
{{ $user->name }}
{{ __('app.profile.email') }}
{{ $user->email }}
{{ __('app.profile.phone') }}
{{ $user->phone ?? '-' }}
{{ __('app.profile.role') }}
{{ $user->roles->pluck('code')->join(', ') }}
@if ($user->tenant)
{{ __('app.profile.tenant_header') }}
{{ __('app.profile.tenant_code') }}
{{ $user->tenant->tenant_code }}
{{ __('app.profile.ic_no') }}
{{ $user->tenant->ic_no ?? '-' }}
{!! __('app.profile.project_unit_header') !!}
@if ($primaryTenantUnit)
{{ __('app.profile.unit_no') }}
{{ $primaryTenantUnit->unit->unit_no }}
{{ __('app.profile.location') }}
{{ $primaryTenantUnit->unit->location?->name ?? '-' }}
{{ __('app.profile.project') }}
{{ $primaryTenantUnit->unit->project->project_name }}
@else

{{ __('app.profile.no_unit') }}

@endif
@endif @endsection