@extends('layouts.app')
@section('title',$employee->name.' - Employee')
@section('page_title',$employee->name)
@section('page_subtitle','Employee profile, HR records and account details.')
@section('content')
Staff ID{{ $employee->staff_id }}
Department{{ $employee->department?->name ?? '-' }}
Salary₦{{ number_format($employee->basic_salary,2) }}
Recent Leave
| Type | Dates | Status |
@foreach($employee->leaveRequests->take(5) as $leave)| {{ $leave->leaveType?->name }} | {{ $leave->start_date?->format('d M Y') }} - {{ $leave->end_date?->format('d M Y') }} | {{ ucfirst($leave->status) }} |
@endforeach
Recent Payroll
| Period | Net Pay | Status |
@foreach($employee->payrolls->take(5) as $payroll)| {{ $payroll->pay_period_start?->format('M Y') }} | ₦{{ number_format($payroll->net_pay,2) }} | {{ ucfirst($payroll->status) }} |
@endforeach
@endsection