@extends('layouts.user') @section('title', 'Request Details') @section('content')

Request Review

Manage and respond to employee inquiries

Back to Requests
Live Discussion
{{ $employeeRequest->employee->first_name }} {{ $employeeRequest->created_at->format('M d, H:i') }}
@if($employeeRequest->subject)

{{ $employeeRequest->subject }}

@endif

{{ $employeeRequest->message }}

@foreach($employeeRequest->replies as $reply)
@if(!$reply->is_employee_reply) {{ $reply->created_at->format('M d, H:i') }} You @else {{ $employeeRequest->employee->first_name }} {{ $reply->created_at->format('M d, H:i') }} @endif

{{ $reply->message }}

@endforeach
@csrf

Request Details

#{{ $employeeRequest->id }}
{{ substr($employeeRequest->employee->first_name, 0, 1) }}

{{ $employeeRequest->employee->first_name }} {{ $employeeRequest->employee->last_name }}

ID: {{ $employeeRequest->employee->id }}

{{ ucfirst($employeeRequest->type) }}

Submitted: {{ $employeeRequest->created_at->format('M d, Y') }}

{{ $employeeRequest->created_at->diffForHumans() }}

@csrf @method('PATCH')
@php $statusColors = [ 'pending' => 'bg-amber-100 text-amber-700', 'replied' => 'bg-blue-100 text-blue-700', 'approved' => 'bg-emerald-100 text-emerald-700', 'rejected' => 'bg-red-100 text-red-700', ]; $currentStatusColor = $statusColors[$employeeRequest->status] ?? 'bg-gray-100 text-gray-700'; @endphp {{ ucfirst($employeeRequest->status) }}
@endsection