@extends('layouts.app')
@section('title',$employee->name.' - Employee')
@section('page_title',$employee->name)
@section('page_subtitle','Employee profile, Canadian payroll fields, HR records and account details.')
@section('content')
@php($provinces = config('hr_canada.provinces'))
@php($statuses = config('hr_canada.employment_statuses'))
@php($payrollFrequencies = config('hr_canada.payroll_frequencies'))
Staff ID{{ $employee->staff_id }}
Department{{ $employee->department?->name ?? '-' }}
Salary / Pay AmountC${{ 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') }} | C${{ number_format($payroll->net_pay,2) }} | {{ ucfirst($payroll->status) }} |
@endforeach
@endsection