@extends('layouts.app') @section('title', 'Profil Saya') @section('content')

Profil Saya

Edit Profil
@if(auth()->user()->pegawai && auth()->user()->pegawai->foto_profil) Foto Profil @elseif(auth()->user()->profile && auth()->user()->profile->foto_profil) Foto Profil @else
@endif

{{ $profile->nama_lengkap ?? $pegawai->nama_lengkap ?? auth()->user()->username }}

{{ ucfirst(str_replace('_', ' ', auth()->user()->role)) }}

@if($pegawai)

NIP: {{ $pegawai->nip }}

@elseif($profile && $profile->nip)

NIP: {{ $profile->nip }}

@endif
Informasi Akun
@if(auth()->user()->last_login) @endif
Username {{ auth()->user()->username }}
Email {{ auth()->user()->email }}
Status {{ ucfirst(auth()->user()->status) }}
Login Terakhir {{ auth()->user()->last_login->format('d/m/Y H:i:s') }}
@if($profile || $pegawai)
Informasi Pribadi
@if($pegawai) @if($pegawai->tempat_lahir || $pegawai->tanggal_lahir) @endif @if($pegawai->jenis_kelamin) @endif @if($pegawai->jabatan) @endif @if($pegawai->unit_kerja) @endif @if($pegawai->alamat) @endif @if($pegawai->no_telepon) @endif @elseif($profile) @if($profile->tempat_lahir || $profile->tanggal_lahir) @endif @if($profile->jenis_kelamin) @endif @if($profile->alamat) @endif @if($profile->no_telepon) @endif @endif
Nama Lengkap {{ $pegawai->nama_lengkap }}
Tempat/Tanggal Lahir {{ $pegawai->tempat_lahir ?? '-' }}, {{ $pegawai->tanggal_lahir ? $pegawai->tanggal_lahir->format('d/m/Y') : '-' }}
Jenis Kelamin {{ $pegawai->jenis_kelamin == 'L' ? 'Laki-laki' : 'Perempuan' }}
Jabatan {{ $pegawai->jabatan }}
Unit Kerja {{ $pegawai->unit_kerja }}
Alamat {{ $pegawai->alamat }}
No. Telepon {{ $pegawai->no_telepon }}
Nama Lengkap {{ $profile->nama_lengkap }}
Tempat/Tanggal Lahir {{ $profile->tempat_lahir ?? '-' }}, {{ $profile->tanggal_lahir ? $profile->tanggal_lahir->format('d/m/Y') : '-' }}
Jenis Kelamin {{ $profile->jenis_kelamin == 'L' ? 'Laki-laki' : 'Perempuan' }}
Alamat {{ $profile->alamat }}
No. Telepon {{ $profile->no_telepon }}
@endif
@endsection