@extends('layouts.userapp') @section('content') @php use Carbon\Carbon; @endphp @if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif
PR Claim Details
Back to List
Title

{{ $prClaim->title }}

Type

@if($prClaim->claim_type === 'ot') OT @else Claim @endif

Status

@if($prClaim->status == 'pending') Pending @elseif($prClaim->status == 'approved') Approved @elseif($prClaim->status == 'rejected') Rejected @elseif($prClaim->status == 'escalated') Escalated @endif

Submission Date

{{ Carbon::parse($prClaim->submission_date)->format('d F Y') }}

Submitted By

{{ $prClaim->created_by_name }}
{{ $prClaim->created_by_email }}

Sent To

{{ $prClaim->send_to_name }}
{{ $prClaim->send_to_email }}

@if($prClaim->comments)
Comments
{{ $prClaim->comments }}
@endif @if($prClaim->status == 'escalated' && $prClaim->escalation_reason)
Escalation Information
Reason:

{{ $prClaim->escalation_reason }}

@endif
Progress History
@foreach($history as $index => $record) @endforeach @if($prClaim->status == 'pending' || $prClaim->status == 'escalated') @endif
Step User Action Date/Time
{{ $index + 1 }} {{ $record->username }}
{{ $record->email }}
@if($record->action == 'created') Created PR Claim @elseif($record->action == 'escalated') Escalated @if($record->comments)
Reason: {{ $record->comments }} @endif @elseif($record->action == 'approved') Approved @elseif($record->action == 'rejected') Rejected @else {{ ucfirst($record->action) }} @endif
{{ Carbon::parse($record->created_at)->format('d M Y, h:i A') }}
{{ count($history) + 1 }} {{ $prClaim->send_to_name }}
{{ $prClaim->send_to_email }}
Pending Review Awaiting Action
@php $currentUserId = Auth::user()->id ?? Auth::id(); $canTakeAction = ($prClaim->send_to_user_id == $currentUserId) && in_array($prClaim->status, ['pending', 'escalated']); @endphp @if($canTakeAction)
Action Required
@csrf
@csrf
@elseif($prClaim->send_to_user_id != $currentUserId)
You are viewing this claim as the creator. Only the recipient can take action on this claim.
@elseif(!in_array($prClaim->status, ['pending', 'escalated']))
This claim has already been processed. Status: {{ ucfirst($prClaim->status) }}
@endif
@endsection