@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 }} {{ number_format($staff->report_points ?? 0) }} Points
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' }}
REPORT POINTS
{{ number_format($staff->report_points ?? 0) }} Points
Leave Management {{ $staff->annual_leave_balance }} Days
Edit Profile Details
@csrf @method('PUT')
@php $currMonth = null; $currDay = null; if ($staff->dob) { $parts = explode('-', $staff->dob); if (count($parts) === 3) { // Handles "YYYY-MM-DD" $currMonth = str_pad($parts[1], 2, '0', STR_PAD_LEFT); $currDay = str_pad($parts[2], 2, '0', STR_PAD_LEFT); } elseif (count($parts) === 2) { // Handles "MM-DD" $currMonth = str_pad($parts[0], 2, '0', STR_PAD_LEFT); $currDay = str_pad($parts[1], 2, '0', STR_PAD_LEFT); } } @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