@component('components.breadcrumb')
@slot('title') Exit Management — Resignations @endslot
@endcomponent
@if (session('success'))
{{ session('success') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)- {{ $error }}
@endforeach
@endif
| ID |
Employee |
Type |
Applied |
Notice (mo) |
LWD |
Status |
Pending/Hold |
Actions |
@foreach ($resignations as $r)
@php
$empName = $r->employee_name ?? optional($r->user)->name;
$empEmail = $r->employee_email ?? optional($r->user)->email;
@endphp
@php $pendingCount = $r->tasks->whereNotIn('status',['APPROVED','LOST'])->count(); @endphp
| {{ $r->id }} |
{{ $empName }} |
{{ $r->resource_type_label }} |
{{ $r->resignation_date?->format('d M Y') }} |
{{ $r->notice_period_months }} |
{{ $r->last_working_day?->format('d M Y') ?? '—' }} |
{{ $r->status }}
|
{{ $pendingCount }} |
View
|
@endforeach