@extends('layouts.masterbeta') @section('title', 'Click ERP - My Profile') @push('styles') @endpush @section('breadcrumbs') My Profile @endsection @section('content')

Personal Settings

Manage your profile information and emergency contacts.

@if($staff->profile_pic) {{ $staff->name }} @else @php $words = explode(' ', $staff->name); $initials = strtoupper(substr($words[0], 0, 1) . (isset($words[1]) ? substr($words[1], 0, 1) : '')); @endphp
{{ $initials }}
@endif
{{ $staff->name }}

{{ $staff->designation ?? 'Staff Member' }}

{{ $staff->status }}
Work Information
WORK EMAIL
{{ $staff->email }}
STAFF ID
{{ $staff->staff_id ?? 'N/A' }}
HIRE DATE
{{ $staff->hire_date ? date('M d, Y', strtotime($staff->hire_date)) : 'N/A' }}
Leave Management {{ $staff->annual_leave_balance }} Days
Edit Profile Details
@csrf @method('PUT')
@php // Extract current month and day if they exist in the DB (e.g., "12-25" or "2026-12-25") $currentDob = $staff->dob ? date('m-d', strtotime($staff->dob)) : '--'; [$currMonth, $currDay] = explode('-', $currentDob) + [null, null]; @endphp
Emergency Contacts & Dependents
@forelse($staff->dependents as $dependent) @empty @endforelse
Full Name Relationship Phone Medical Notes Actions
{{ $dependent->fullname }} {{ $dependent->relationship }} {{ $dependent->phone ?? 'N/A' }} {{ $dependent->medical_details ?? 'None' }}
@csrf @method('DELETE')
No emergency contacts added yet.
@endsection @push('modals') @endpush @push('scripts') @endpush