@extends('garage.layouts.app') @section('title', 'Employee Profile') @section('content') @php $attendanceRows = collect($attendanceRows ?? []); $ledgerRows = collect($ledgerRows ?? []); $employeeAllowances = collect($employeeAllowances ?? []); $employeeImageUrl = $employeeImageUrl ?? null; $employeeDocuments = collect($employeeDocuments ?? []); $incrementHistory = collect($incrementHistory ?? []); $noticePeriods = collect($noticePeriods ?? []); $probationRows = collect($probationRows ?? []); $ratingRows = collect($ratingRows ?? []); $fineRules = collect($fineRules ?? []); $adjustmentsAdvance = collect($adjustmentsByType['advance'] ?? []); $adjustmentsDeduction = collect($adjustmentsByType['deduction'] ?? []); $adjustmentsBonus = collect($adjustmentsByType['bonus'] ?? []); $adjustmentsFine = collect($adjustmentsByType['fine'] ?? []); $leaveRows = $attendanceRows->where('status', 'leave'); $ledgerHasLink = !empty($ledgerUrl); $closing = (float)($ledgerTotals['balance'] ?? 0); @endphp @include('shared.folder-tabs-styles')
| Date | Status | In | Out | Minutes |
|---|---|---|---|---|
| No attendance data. | ||||
| {{ $a->work_date }} | {{ ucfirst($a->status) }} | {{ !empty($a->first_in) ? \Carbon\Carbon::parse($a->first_in)->format('H:i') : '—' }} | {{ !empty($a->last_out) ? \Carbon\Carbon::parse($a->last_out)->format('H:i') : '—' }} | {{ (int)($a->work_minutes ?? 0) }} |
| Date | Voucher | Type | Dr | Cr | Narration |
|---|---|---|---|---|---|
| No ledger transactions found. | |||||
| {{ $r->voucher_date ?: '—' }} | @if(!empty($r->voucher_id)) {{ $r->voucher_no ?: '—' }} @else {{ $r->voucher_no ?: '—' }} @endif | {{ $r->voucher_type ?: '—' }} | {{ $dr > 0 ? number_format($dr, 2) : '—' }} | {{ $cr > 0 ? number_format($cr, 2) : '—' }} |
{{ $r->narration ?: '—' }}
@if(!empty($r->against_text))
Against: {{ $r->against_text }}
@endif
|
| Date | Reason | Amount |
|---|---|---|
| No advance records. | ||
| {{ $r->adj_date ?: $r->month }} | {{ $r->reason ?: '—' }} | {{ number_format((float)$r->amount, 2) }} |
| Date | Reason | Amount |
|---|---|---|
| No deduction records. | ||
| {{ $r->adj_date ?: $r->month }} | {{ $r->reason ?: '—' }} | {{ number_format((float)$r->amount, 2) }} |
| Name | Type | Month | Amount |
|---|---|---|---|
| No allowances. | |||
| {{ $al->name }} | {{ ucfirst($al->allowance_type) }} | {{ $al->apply_month ?: '—' }} | {{ number_format((float)$al->amount, 2) }} |
| Date | Reason | Amount |
|---|---|---|
| No bonus records. | ||
| {{ $r->adj_date ?: $r->month }} | {{ $r->reason ?: '—' }} | {{ number_format((float)$r->amount, 2) }} |
| Date | Reason | Amount |
|---|---|---|
| No fine records. | ||
| {{ $r->adj_date ?: $r->month }} | {{ $r->reason ?: '—' }} | {{ number_format((float)$r->amount, 2) }} |
| Category | Threshold | Fine | Notes |
|---|---|---|---|
| No fine rules configured. | |||
| {{ str_replace('_', ' ', ucfirst($fr->category)) }} | After {{ (int)$fr->threshold_value }} {{ $fr->threshold_unit }} | {{ number_format((float)$fr->fine_amount, 2) }} | {{ $fr->notes ?: '—' }} |
| Start | End | Days | Status | Reason |
|---|---|---|---|---|
| No notice period records. | ||||
| {{ $n->start_date }} | {{ $n->end_date ?: '—' }} | {{ (int)$n->notice_days }} | {{ ucfirst($n->status) }} | {{ $n->reason ?: '—' }} |
| Start | End | Status | Remarks |
|---|---|---|---|
| No probation records. | |||
| {{ $pr->start_date }} | {{ $pr->end_date ?: '—' }} | {{ ucfirst($pr->status) }} | {{ $pr->remarks ?: '—' }} |
| Date | Rating | Score | Remarks |
|---|---|---|---|
| No rating records. | |||
| {{ $rt->rated_on }} | {{ $rt->rating }} | {{ $rt->score !== null ? number_format((float)$rt->score, 2) : '—' }} | {{ $rt->remarks ?: '—' }} |
| Effective Date | Old Salary | New Salary | Difference | Notes | Logged At |
|---|---|---|---|---|---|
| No increment history found. | |||||
| {{ $inc->effective_date ?: '—' }} | {{ number_format($oldSalary, 2) }} | {{ number_format($newSalary, 2) }} | {{ $diff >= 0 ? '+' : '' }}{{ number_format($diff, 2) }} | {{ $inc->notes ?: '—' }} | {{ $inc->created_at ?: '—' }} |
| Date | Status | Notes |
|---|---|---|
| No leave records. | ||
| {{ $lv->work_date }} | Leave | {{ $lv->notes ?: '—' }} |