@extends('layouts.app') @section('title', $employee->full_name . ' - Profile') @section('content')
← Back to Directory

{{ $employee->full_name }}

{{ $employee->employee_code }} • {{ $employee->designation->title ?? 'Staff' }} • {{ $employee->department->name ?? 'General' }}
{{ strtoupper(substr($employee->first_name, 0, 1) . substr($employee->last_name, 0, 1)) }}
{{ $employee->full_name }}
{{ ucfirst($employee->employment_status) }} {{ ucfirst(str_replace('_', ' ', $employee->employment_type)) }}
{{ $employee->work_email }}
{{ $employee->phone }}
{{ $employee->city ?? 'Dhaka, Bangladesh' }}
Joined: {{ $employee->joining_date ? $employee->joining_date->format('d M Y') : '--' }}
Monthly Gross Salary
৳ {{ number_format($employee->gross_salary, 2) }}
BDT Monthly
Employment Hierarchy
Department: {{ $employee->department->name ?? 'Unassigned' }}
Designation: {{ $employee->designation->title ?? 'Staff' }}
Reporting Manager: {{ $employee->reportingManager ? $employee->reportingManager->full_name : 'None (Top Level)' }}
Work Shift: {{ $employee->workSchedule ? $employee->workSchedule->name : '09:00 - 18:00 Standard' }}
Emergency & Personal Info
Date of Birth: {{ $employee->date_of_birth ? $employee->date_of_birth->format('d M Y') : '--' }}
Gender: {{ ucfirst($employee->gender) }}
Emergency Contact: {{ $employee->emergency_contact_name ?? 'Not specified' }}
Emergency Phone: {{ $employee->emergency_contact_phone ?? 'Not specified' }}
Salary Structure in Bangladeshi Taka (BDT ৳)
Salary Component Frequency Amount (BDT)
Basic Salary Monthly ৳ {{ number_format($employee->basic_salary, 2) }}
House Rent Allowance (HRA) Monthly ৳ {{ number_format($employee->house_rent_allowance, 2) }}
Medical Allowance Monthly ৳ {{ number_format($employee->medical_allowance, 2) }}
Conveyance Allowance Monthly ৳ {{ number_format($employee->conveyance_allowance, 2) }}
Total Monthly Gross Salary ৳ {{ number_format($employee->gross_salary, 2) }}
@forelse($employee->leaveBalances as $balance)
{{ $balance->leaveType->name ?? 'Leave' }}
{{ $balance->remaining_days }}
Days Left
Allocated: {{ $balance->total_allocated }}
Used: {{ $balance->used_days }}
@empty
No leave balances initialized for this employee.
@endforelse
@forelse($employee->attendances as $att) @empty @endforelse
Date Check-In Check-Out Status Late (Mins) Overtime (Hrs) Total Hours
{{ $att->attendance_date->format('d M Y') }} {{ $att->check_in ? $att->check_in->format('h:i A') : '--' }} {{ $att->check_out ? $att->check_out->format('h:i A') : '--' }} {{ ucfirst($att->status) }} {{ $att->late_minutes > 0 ? "+{$att->late_minutes}m" : '-' }} {{ $att->overtime_hours > 0 ? "{$att->overtime_hours}h" : '-' }} {{ $att->total_work_hours }} hrs
No attendance logs available.
@endsection