@php $user = Auth()->user(); $head_office_id = $user->selected_head_office; $loc_ids = $head_office_id->locations; $site_list = []; if($loc_ids->isNotEmpty()){ foreach ($loc_ids as $each_site) { $site_list[] = $each_site->location ?? null; } } $head_office_user = App\Models\HeadOfficeUser::where('user_id', $user->id) ->where('head_office_id', $head_office_id->id) ->first(); $hou = $head_office_user ?? null; @endphp @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')
{{--
--}}
Sites Linked Cases Persons Company Addresses
{{-- contact dropdown --}} {{-- address dropdown --}} {{-- create contact --}} {{-- create address --}} {{-- --}}
@foreach ($case_contacts as $k => $case_contact) @php $contact = $case_contact->contact; @endphp

@if ($contact->conatact_patient) Patient Cases @elseif($contact->conatact_prescriber) Health Care Professional Cases @endif

@php $data = count($contact->contact_cases) @endphp
@foreach ($contact->contact_cases as $c) @if ($c->case->linked_location_incident->incident->form)
case->linked_location_incident->incident->form->color_code) style="background-color: {{ $c->case->linked_location_incident->incident->form->color_code }}" @endif>

{{ $c->case->linked_location_incident->incident->form->name }}

{{ $c->case->created_at->format(config('app.dateFormat')) }}
@endif @endforeach
@endforeach {{-- location cases --}}

Location Cases

Periods

It is testing server, it may take a few seconds to load timeline...

No Data Found

{{-- Linked cases --}}

Linked Cases

@if (count($case->allLinkedCases()) != 0) @foreach ($case->allLinkedCases() as $link_case) @php $link_case_other = $link_case ->otherCase($case->id) ->first(); @endphp @if ($case->isArchive == true) @else @endif @endforeach
Case Id Type Status Action
#{{ $link_case_other->id }} {{ $link_case_other->incident_type }}
@else

There are no linked cases

@endif
{{-- Linked Contacts --}}
@livewire('intelligence-contact-matches')
{{-- Reported cases --}}
@if (count($all_linked_contacts) > 0)

Cases History

{{-- herer we display JS Response --}}
@endif

No Data Found

@endsection @section('styles') @endsection @section('scripts') @endsection