@extends('layout.mainlayout') @section('content')
@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

Resignations

@can('resignation-view-mine') Your Resignations @endcan @can('resignation-apply') Apply Resignation @endcan
@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 @endforeach
ID Employee Type Applied Notice (mo) LWD Status Pending/Hold Actions
{{ $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
@endsection @push('scripts') @endpush