@extends('layouts.app') @section('title', 'NCR: ' . $ncr->reference_number) @section('content')
Back

{{ $ncr->reference_number }}

{{ $ncr->title }}

Edit

NCR Information

Title
{{ $ncr->title }}
Severity
{{ ucfirst($ncr->severity) }}
Status
{{ ucfirst(str_replace('_', ' ', $ncr->status)) }}
Identified Date
{{ $ncr->identified_date->format('M d, Y') }}
Identified By
{{ $ncr->identifiedBy->name }}
Location
{{ $ncr->location }}
@if($ncr->department)
Department
{{ $ncr->department->name }}
@endif @if($ncr->inspection) @endif
Description
{{ $ncr->description }}
@if($ncr->root_cause || $ncr->immediate_action)

Root Cause & Immediate Action

@if($ncr->root_cause)
Root Cause
{{ $ncr->root_cause }}
@endif @if($ncr->immediate_action)
Immediate Action
{{ $ncr->immediate_action }}
@endif
@endif @if($ncr->corrective_action_plan || $ncr->corrective_action_assigned_to)

Corrective Action

@if($ncr->corrective_action_plan)
Action Plan
{{ $ncr->corrective_action_plan }}
@endif @if($ncr->correctiveActionAssignedTo)
Assigned To
{{ $ncr->correctiveActionAssignedTo->name }}
@endif @if($ncr->corrective_action_due_date)
Due Date
{{ $ncr->corrective_action_due_date->format('M d, Y') }} @if($ncr->corrective_action_due_date < now() && !$ncr->corrective_action_completed) (Overdue) @endif
@endif
Status
{{ $ncr->corrective_action_completed ? 'Completed' : 'Pending' }} @if($ncr->corrective_action_completed_date) on {{ $ncr->corrective_action_completed_date->format('M d, Y') }} @endif
@endif @if($ncr->verification_required && $ncr->verified_by)

Verification

Verified By
{{ $ncr->verifiedBy->name }}
@if($ncr->verified_at)
Verified At
{{ $ncr->verified_at->format('M d, Y') }}
@endif @if($ncr->verification_notes)
Verification Notes
{{ $ncr->verification_notes }}
@endif
@endif
@endsection