@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' : ''; if ($disabledStatus == '') { $isPaidExpense = $resignation->officeExpense && $resignation->officeExpense->status == 3; if ($isPaidExpense) { $disabledStatus = 'disabled'; } } @endphp @extends('admin.layouts.layouts') @section('title', 'Details | My Resignations') @section('page-css') @endsection @section('content') {{-- Cancel Resignation 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