@extends('layouts.head_office_app') @section('title', 'Case '.$case->id) @section('sub-header') @include('head_office.case_manager.notes.sub-header') @endsection @section('content') @php if($case->stages->count()) $per = 100/$case->stages->count(); else { $per = 0; } $case_reporter = $case->getReporter(); $all_locations = $case->link_case_with_form->getInvolvedLocations(); $feedbackTemplates = $case->link_case_with_form->form->feedback_templates; $close_reasons = $case->link_case_with_form->form->close_case_templates; $headOfficeUser = $case_reporter->getHeadOfficeUser(null, true) ?? null; $is_reporter_available = isset($case_reporter) && ( $headOfficeUser === null || $headOfficeUser->deleted_at === null ); @endphp @if ($viewerCount > 0)
Users Viewing This Case
@livewire('case-view-tracker', ['caseId' => $case->id, 'userId' => Auth::user()->id])
@endif
@if($case->status == "closed")

This case is completed

@endif
@include('head_office.case_manager.notes.add_interested_party',['interested_party' =>null ,'case' => $case])
@if(!count($comments))

No comments are found!

@else @endif @foreach($comments as $key=> $comment) @include('head_office.case_manager.notes.view_comments',compact('comment')) @endforeach
@if($case->isArchived == 0) @include('head_office.case_manager.notes.form_comment',['comment'=>null,'parent'=>null,'remove_backdrop'=>true]) @endif
@include('head_office.case_manager.notes.view_notes_column_3',['case' => $case])
@if($case->can_share_case_responsibility || $case->bypassCaseHandler())
@csrf
@endif
@csrf
@php $case_user_ids = $allCaseHandlers ->where('is_hidden', false) ->pluck('case_head_office_user.user.id') ->all(); $case_user_ids_json = json_encode($case_user_ids); @endphp
@csrf
@if(session('error_owner')) @endif @if($case->requires_final_approval && $case->status == 'waiting') @endif
@csrf
@endsection @section('styles') @endsection @section('scripts') @if(Session::has('success')) @elseif(Session::has('error')) @endif @endsection