@if(session('success_message'))
{{$case->getReporter()->name ?? 'External User'}}
from @else Reported from @endifgetReporter()->id) && $case->getReporter()->email != 'external@qitech.com') title="{{$case->location_full_address}}"@endif> @if (isset($case->saved_loc)) {{ isset($case->saved_loc->location_id) ? $case->saved_loc->location_id : $case->saved_loc->trading_name}} @else {{ isset($case->location->location_id) ? $case->location->location_id : $case->location_name}} @endif
{{$case->created_at->format('d M Y, h:i a')}} ({{$case->created_at->diffForHumans() }})
{{ isset($case->location->location_id) ? $case->location->location_id : $case->location_name}}
@php $all_involved_sites = $case->link_case_with_form->latest_linked_record()->getAllInvolvedSites(); @endphp @if ($all_involved_sites != null && $all_involved_sites->count() > 0)email != 'external@qitech.com') title="{{$l_sites->location_full_address}}"@endif> @if (isset($l_sites)) {{ isset($l_sites->location_id) ? $l_sites->location_id : $l_sites->trading_name}} @else {{ isset($case->location->location_id) ? $case->location->location_id : $case->location_name}} @endif @if (!$loop->last) , @endif
@endforeachThere are no linked cases
@endif| Type | Status | @foreach ($case->link_case_with_form->get_pending_forms() as $pending_form ) | |
|---|---|---|---|
| {{$pending_form['form']}} | {{$pending_form['status']}} |
{{isset($pending_form['form_draft']) ? $pending_form['form_draft'] : '-'}}
@if (isset($pending_form['reason']))
Reason{{$pending_form['reason']}} @endif @if (isset($pending_form['remind_at']))Last Reminder sent {{ \Carbon\Carbon::parse($pending_form['remind_at'])->diffForHumans() }}@endif |
{{-- --}}
Not required
@if ($case->link_case_with_form->created_by->email != 'external@qitech.com' || $pending_form['type'] == 0)
Remind
@if ($pending_form['type'] == 0)
@endif
@elseif ($case->link_case_with_form->created_by->email == 'external@qitech.com' || $pending_form['type'] == 1)
Submit
@endif
|
Deletion Message:
{{$record->lfpse_deletes->message}}
| Sr# | @foreach ($record->LfpseSubmissions as $sr => $s)Record {{$sr + 1}} | @endforeach
| LFPSE ID | @foreach ($record->LfpseSubmissions as $s){{$s->reference_id}} | @endforeach
| Type | @php $FormType = json_decode($record->json_submission,true)['mandatory_questions']['-1080']['value']; @endphp{{$FormType == '1' ? 'Incident' : "Good Care"}} |
| Version | @foreach ($record->LfpseSubmissions as $s){{isset($s->version) ? $s->version : '6'}} | @endforeach
| Outcome | @foreach ($record->LfpseSubmissions as $s){{$s->outcome_type_string}} | @endforeach
| Psychological Harm | @php $psyHarmLevels = [ "4" => "No Psychological harm", "3" => "Low Psychological harm", "2" => "Moderate Psychological harm", "1" => "Severe Psychological harm" ]; if (isset($selected_answer[1]['value']) && array_key_exists($selected_answer[1]['value'], $psyHarmLevels)) { echo $psyHarmLevels[$selected_answer[1]['value']]; } @endphp |
| Physical Harm | @php $harmLevels = [ "5" => "No physical harm", "4" => "Low physical harm", "3" => "Moderate physical harm", "2" => "Severe physical harm", "1" => "Fatal physical harm" ]; if (isset($selected_answer[0]['value']) && array_key_exists($selected_answer[0]['value'], $harmLevels)) { echo $harmLevels[$selected_answer[0]['value']]; } @endphp |
| Remarks | @foreach ($record->LfpseSubmissions as $s){{$s->remarks}} | @endforeach
| Date | @foreach ($record->LfpseSubmissions as $s){{$s->created_at->format('d M Y (D) h:i a')}} | @endforeach
| fsaf | |
| fsaf | |
| LFPSE ID | @foreach ($lfpseRec->LfpseSubmissions as $s){{$s->reference_id}} | @endforeach
| Actual ID | @foreach ($lfpseRec->LfpseSubmissions as $s){{$s->lfpse_id}} | @endforeach
| Version | @foreach ($lfpseRec->LfpseSubmissions as $s){{isset($s->version) ? $s->version : '6'}} | @endforeach
| Outcome | @foreach ($lfpseRec->LfpseSubmissions as $s){{$s->outcome_type_string}} | @endforeach
| Psychological Harm | @php $psyHarmLevels = [ "4" => "No Psychological harm", "3" => "Low Psychological harm", "2" => "Moderate Psychological harm", "1" => "Severe Psychological harm" ]; if (isset($PsychologicalHarm) && array_key_exists($PsychologicalHarm, $psyHarmLevels)) { echo $psyHarmLevels[$PsychologicalHarm]; } @endphp |
| Physical Harm | @php $harmLevels = [ "5" => "No physical harm", "4" => "Low physical harm", "3" => "Moderate physical harm", "2" => "Severe physical harm", "1" => "Fatal physical harm" ]; if (isset($PhysicalHarm) && array_key_exists($PhysicalHarm, $harmLevels)) { echo $harmLevels[$PhysicalHarm]; } @endphp |
| Remarks | @foreach ($lfpseRec->LfpseSubmissions as $s){{$s->remarks}} | @endforeach
| Date | @foreach ($lfpseRec->LfpseSubmissions as $s){{$s->created_at->format('d M Y (D) h:i a')}} | @endforeach
Errors {{$record->errors->count()}}
| Severity | {{$err->severity}} |
| Remarks | {{$err->message}} |
| Time | {{$err->created_at->format('d M Y (D) h:i a')}} |
| asdf |