@extends('layouts.head_office_app') @section('title', 'Case '.$case->id) @section('sub-header') @include('head_office.case_manager.notes.sub-header') @endsection @section('content')
@include('layouts.error')
@if($case->case_closed) @endif @if(!$case->root_cause_analysis->where('type','fish_bone')->first() || !$case->root_cause_analysis->where('type','five_whys')->first()) @endif
@foreach ($case->root_cause_analysis as $key => $root_cause_analysis)
Status: @if($root_cause_analysis->status == 1)Completed @elseif($root_cause_analysis->status == 2)Requested Again @else Requested @endif @if(!$root_cause_analysis->status) type == 'fish_bone') data-bs-target="#edit_fish_bone_{{$root_cause_analysis->id}}" @else data-bs-target="#five_whys_bone_{{$root_cause_analysis->id}}" @endif @if($case->case_closed) style="display:none" @endif title="Edit request {{$root_cause_analysis->type}}">Edit @endif

Problem
{{$root_cause_analysis->name}}
Editable : @if($root_cause_analysis->is_editable) Yes @else No @endif

@if($root_cause_analysis->type == 'fish_bone')
Fish Bones
@endif @if($root_cause_analysis->type == 'fish_bone') @foreach($root_cause_analysis->fish_bone_questions as $question)
{{$question->question}}
@endforeach @else @foreach ($root_cause_analysis->five_whys_questions as $question)
{{$question->question}}
@endforeach @endif
@if($root_cause_analysis->note)
Comment

{{$root_cause_analysis->note}}

@endif @if ($root_cause_analysis->status)
{{$root_cause_analysis->root_cause_analysis_type}} Completed By : {{$root_cause_analysis->user->name}}
Submitted Time : {{$root_cause_analysis->updated_at->format(config('app.dateFormat'))}} {{$root_cause_analysis->updated_at->format('H:i:s')}}
@endif
@if($root_cause_analysis->type == 'fish_bone') @else @endif @endforeach
@endsection @section('scripts') @endsection