@extends('dashboard.layouts.app') @section('content') @include('components.alert') @php $authStaffId = Auth::user()?->staff?->id; $isHolidayAutomaticRequest = optional($request->type)->name === 'Holiday Automatic Request'; $canEditRequestStatus = $authStaffId == $request->request_for; // $canEditRequestStatus = auth() // ->user() // ->hasAnyRole(['Super admin', 'HR']); $canApproveHolidayRows = $isHolidayAutomaticRequest && $authStaffId == $request->created_by; $showGenericStatusSelect = $canEditRequestStatus && !$isHolidayAutomaticRequest && !in_array($request->status, ['approved', 'rejected']); $statusLabels = [ 'pending' => 'Pending', 'approved' => 'Approved', 'rejected' => 'Rejected', ]; $statusClass = str_replace('-', '_', $request->status ?? 'pending'); $currentStatusLabel = $statusLabels[$request->status] ?? ucfirst((string) $request->status); $currentReason = $request->reject_reason ?? ($request->notes ?? ''); $normalizedRequestType = strtolower(trim((string) optional($request->type)->name)); $isLeaveLikeRequest = str_contains($normalizedRequestType, 'leave') || str_contains($normalizedRequestType, 'vacation'); $leaveReference = $request->reference instanceof \App\Models\HrRequestLeave ? $request->reference : null; @endphp
This recruitment request lands with the HR manager first. You can assign it to any active HR employee and change it later when needed.
This student needs a new demo scheduled.
Main request details, ownership, department data, related student info, and submission metadata.
Position requirements, vacancy data, expected start date, and hiring-related configuration.
Assign staff to holiday or working lists and save the plan for this request before HR approval.
The manager can prepare the holiday plan here. HR approval is handled row by row after the plan is saved.
@elseif($canApproveHolidayRows)Use the approval dropdown next to each employee. The rejection reason field only appears for rejected rows.
@elseOnly the manager can edit the holiday staffing plan, and HR reviews each employee row separately after the plan is prepared.
@endifSend a reply for this request and attach supporting files if needed.
Review previous replies, attached files, timestamps, and response authors.