@extends('admin.layouts.app') @section('title', get_setting('site_name') . ' | Subordinate Employees') @push('css') @endpush @section('content')
No subordinate found in your list.
@elseYour direct subordinates are shown below with attendance, leave and visit info.
@endifDepartment: {{ optional($selectedStaff->department)->name ?? '-' }} | Designation: {{ optional($selectedStaff->designation)->name ?? '-' }} | Branch: {{ optional($selectedStaff->warehouse)->name ?? '-' }}
| Date | In | Out | Status |
|---|---|---|---|
| {{ $att->date }} | {{ $att->signIn ?? '-' }} | {{ $att->signOut ?? '-' }} | {{ $att->status ?? '-' }} |
| No attendance found | |||
| Apply | Type | Status |
|---|---|---|
| {{ $lv->apply_date ?? '-' }} | {{ optional($lv->leave_type)->name ?? ($lv->type ?? '-') }} | @if((int)$lv->status === 1) Approved @elseif((int)$lv->status === 2) Rejected @else Pending @endif |
| No leave found | ||
| Apply | Duration | Status |
|---|---|---|
| {{ $vs->application_date ?? '-' }} | {{ $vs->duration ?? 0 }} | @if((int)$vs->status === 1) Approved @elseif((int)$vs->status === 2) Rejected @else Pending @endif |
| No visit found | ||
Total Attendance Rows: {{ ($attendancesByStaff[$selectedStaff->id] ?? collect())->count() }}
Total Leave Rows: {{ ($leavesByStaff[$selectedStaff->id] ?? collect())->count() }}
Total Visit Rows: {{ ($visitsByStaff[$selectedStaff->id] ?? collect())->count() }}