@extends('layouts.app') @section('title', 'My Profile') @section('content')
My Profile
Edit Profile

{{ auth()->user()->full_name }}

{{ auth()->user()->profile->employee_id ?? '' }}

{{ auth()->user()->status->name }}
Personal Information
First Name: {{ auth()->user()->first_name }}
Last Name: {{ auth()->user()->last_name }}
Email: {{ auth()->user()->email }}
Phone: {{ auth()->user()->profile->phone ?? 'N/A' }}
Join Date: {{ auth()->user()->profile->join_date?->format('M d, Y') ?? 'N/A' }}
Work Information
Department: {{ auth()->user()->departments->pluck('name')->join(', ') }}
Designation: {{ auth()->user()->designations->pluck('name')->join(', ') }}
Working Shift: {{ auth()->user()->currentWorkingShift()->first()?->name ?? 'N/A' }}
Current Status: @if(auth()->user()->is_punched_in) Punched In @else Punched Out @endif
Address

{{ auth()->user()->profile->address ?? 'N/A' }}

Recent Activity
Last Login {{ auth()->user()->last_login_at?->diffForHumans() ?? 'Never' }}
Account Created {{ auth()->user()->created_at->diffForHumans() }}
@endsection