@php $badgeColors = [ 'Pending' => 'warning', 'Reporting Manager Approved' => 'light', 'Head Manager Accepted' => 'dark', 'HR Approved' => 'info', 'Account Approved' => 'primary', 'Reporting Manager Rejected' => 'danger', 'Head Manager Rejected' => 'danger', 'HR Rejected' => 'danger', 'Cancelled' => 'danger', ]; $disabledStatus = in_array($resignation->status, [ 'Cancelled', 'Reporting Manager Rejected', 'Head Manager Rejected', 'HR Rejected', ]) ? 'disabled' : ''; $isReportingPerson = isEmployeeReportingPerson($resignation->employee_master_id); $isHeadManager = isEmployeeHeadManager($resignation->employee_master_id); $hasRM = $isReportingPerson && $resignation->status == 'Pending'; $hasHM = $isHeadManager && $resignation->status == 'Reporting Manager Approved'; $isDisabled = (!$hasRM && !$hasHM) || $disabledStatus === 'disabled'; @endphp @extends('admin.layouts.layouts') @section('title', 'Details | Team Resignation Request') @section('page-css') @endsection @section('content') {{-- Reason Modal --}} {{-- Amount Modal --}} {{-- Edit History Modal --}}
{{-- Details --}}
Details
Back
Employee
{{ $resignation->employee->employee_name ?? '-' }}
Type
{{ $resignation->type ?? '-' }}
@if ($resignation->type == 'Other')
Other Type
{{ $resignation->other_type ?? '-' }}
@endif
Notice Type
{{ $resignation->resignation_notice_type ?? '-' }}
@if ($resignation->resignation_notice_type == 'Notice Period')
No. Of Days
{{ $resignation->no_of_days ?? '-' }}
@endif
Reason
{{ nl2br($resignation->reason ?? '') }}
Created Date
{{ $resignation->created_at->format('d-m-Y h:i A') ?? '' }} ({{ $resignation->createdBy->name ?? '-' }})
@if (!empty($resignation->updated_by))
Updated Date
{{ $resignation->updated_at->format('d-m-Y h:i A') ?? '' }} ({{ $resignation->updatedBy->name ?? '-' }})
@endif
Status
{{-- Resignation Timeline --}}
Resignation Timeline
@include('admin.team_resignation_request.timeline_content', compact('resignation'))
{{-- Resignation History --}}
Resignation History
# Status Remark Action On Action By
@endsection @section('page-js') @endsection