@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)
This case is completed
Case Status
@foreach ($statuses as $status) @if (($status->status == 'In Progress' || $status->form_id == $case->link_case_with_form->form->id) && $status->is_active == true) {{ $status->status }} @endif @endforeach @if( ($case->getCanShareCaseResponsibilityAttribute() && $case->status == 'open') || $case->bypassCaseHandler() ) @if( $case->status != 'closed' && ( (!$case->isArchived && $case->getCanShareCaseResponsibilityAttribute()) || $case->bypassCaseHandler() ) ) case_closed) style="display:none" @endif onclick="resetFeedback('complete')" title="Complete Case"> Complete Case @else case_closed) style="display:none" @endif onclick="resetFrom()" title="Reopen"> Reopen @endif @endif @if ($case->getCanShareCaseResponsibilityAttribute() || $case->bypassCaseHandler()) @if ($case->isArchived == false) Archive Case @else Unarchive Case @endif @endif @if($case->getCanShareCaseResponsibilityAttribute() && $case->status == 'open' || $case->bypassCaseHandler())Case Handler
Add Case Investigator Share Case Responsibility Transfer Case Responsibility Remove Case Investigator @endif @if($case->getCanShareCaseResponsibilityAttribute() || $case->bypassCaseHandler()) Make me sole case handler Make me co-case handler @endif @if($case->status != 'closed' && $case->isArchived == false)Features
@if ($case->link_case_with_form->form->is_allow_case_handler_feedback == true) Send Feedback @endif @if ($case->getCanShareCaseResponsibilityAttribute() || $case->bypassCaseHandler()) Share CaseApproval
@php $formId = optional(optional($case->link_case_with_form)->form)->id; $reviewSetting = optional($headOfficeUser->user_review_settings) ->where('be_spoke_form_id', $formId) ->where('is_active', true) ->first(); @endphp @if ($reviewSetting) Approve Closure Reject Closure @endif @endifUpdate Case Status
No comments are found!
@else