prescription_missing_signature) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_prescription_name'] ?? 'Prescription' }}

{{ $data['extra_fields']['prescription']['missing_signature']['label'] ?? 'Missing signature' }}

Reason
@foreach(App\Models\NearMiss::$PrescriptionReasonsOfNearMiss['prescription_missing_signature'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
prescription_missing_signature_cause_other) style="display:none" @endif>
@else @endif @endforeach
prescription_expired) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_prescription_name'] ?? 'Prescription' }}

{{ $data['extra_fields']['prescription']['prescription_expired']['label'] ?? 'Prescription expired' }}

prescription_expired_involve_drug != 1) style="display:none" @endif>
Reason
@foreach(App\Models\NearMiss::$PrescriptionReasonsOfNearMiss['prescription_expired'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
prescription_expired_cause_other) style="display:none" @endif>
@else @endif @endforeach
prescription_old_treatment) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_prescription_name'] ?? 'Prescription' }}

{{$data && isset($data['extra_fields']['prescription']['old_treatment']['label']) ? $data['extra_fields']['prescription']['old_treatment']['label'] : 'Old treatment'}}

Reason
@foreach(App\Models\NearMiss::$PrescriptionReasonsOfNearMiss['prescription_old_treatment'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
prescription_old_treatment_cause_other) style="display:none" @endif>
@else @endif @endforeach
prescription_tampered) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_prescription_name'] ?? 'Prescription' }}

{{$data && isset($data['extra_fields']['prescription']['fraudulent_tampered_prescription']['label']) ? $data['extra_fields']['prescription']['fraudulent_tampered_prescription']['label'] : 'Fraudulent/tampered prescription'}}

Reason
@foreach(App\Models\NearMiss::$PrescriptionReasonsOfNearMiss['prescription_tampered'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
prescription_tampered_cause_other) style="display:none" @endif>
@else @endif @endforeach
labelling_wrong_brand) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_labelling_name'] ?? 'Labelling' }}

{{ $data['extra_fields']['labelling']['wrong_brand']['wrong_brand_text'] ?? 'Wrong brand' }}

Reason
@foreach(App\Models\NearMiss::$LabellingReasonsOfNearMiss['labelling_wrong_brand'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
labelling_wrong_brand_cause_other) style="display:none" @endif>
@else @endif @endforeach
labelling_wrong_direction) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_labelling_name'] ?? 'Labelling' }}

{{ $data['extra_fields']['labelling']['wrong_direction']['wrong_direction_label'] ?? 'Wrong direction' }}

Reason
@foreach(App\Models\NearMiss::$LabellingReasonsOfNearMiss['labelling_wrong_direction'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
labelling_wrong_direction_cause_other) style="display:none" @endif>
@else @endif @endforeach
labelling_wrong_item) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_labelling_name'] ?? 'Labelling' }}

{{ $data['extra_fields']['labelling']['wrong_item']['wrong_item_text'] ?? 'Wrong item' }}

Reason
@foreach(App\Models\NearMiss::$LabellingReasonsOfNearMiss['labelling_wrong_item'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
labelling_wrong_item_cause_other) style="display:none" @endif>
@else @endif @endforeach
labelling_wrong_formulation) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_labelling_name'] ?? 'Labelling' }}

{{ $data['extra_fields']['labelling']['wrong_formulation']['wrong_formulation_text'] ?? "Wrong formulation" }}

Reason
@foreach(App\Models\NearMiss::$LabellingReasonsOfNearMiss['labelling_wrong_formulation'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
labelling_wrong_formulation_cause_other) style="display:none" @endif>
@else @endif @endforeach
labelling_wrong_patient) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_labelling_name'] ?? 'Labelling' }}

{{ $data['extra_fields']['labelling']['wrong_patient']['wrong_patient_label'] ?? 'Wrong patient' }}

Reason
@foreach(App\Models\NearMiss::$LabellingReasonsOfNearMiss['labelling_wrong_patient'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
labelling_wrong_patient_cause_other) style="display:none" @endif>
@else @endif @endforeach
labelling_wrong_quantity) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_labelling_name'] ?? 'Labelling' }}

{{ $data['extra_fields']['labelling']['wrong_quantity']['wrong_quantity_text'] ?? 'Wrong quantity' }}

Reason
@foreach(App\Models\NearMiss::$LabellingReasonsOfNearMiss['labelling_wrong_quantity'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
labelling_wrong_quantity_cause_other) style="display:none" @endif>
@else @endif @endforeach
labelling_wrong_strength) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_labelling_name'] ?? 'Labelling' }}

{{ $data['extra_fields']['labelling']['wrong_strength']['wrong_strength_text'] ?? 'Wrong strength' }}

Reason
@foreach(App\Models\NearMiss::$LabellingReasonsOfNearMiss['labelling_wrong_strength'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
labelling_wrong_strength_cause_other) style="display:none" @endif>
@else @endif @endforeach
picking_out_of_date_item) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_picking_name'] ?? 'Picking' }}

{{ $data['extra_fields']['picking']['out_of_date_item']['label'] ?? 'Out-of-date item' }}

Reason
@foreach(App\Models\NearMiss::$PickingReasonsOfNearMiss['picking_out_of_date_item'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
picking_out_of_date_item_cause_other) style="display:none" @endif>
@else @endif @endforeach
picking_wrong_brand) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_picking_name'] ?? 'Picking' }}

{{ $data['extra_fields']['picking']['wrong_brand']['label'] ?? 'Wrong brand' }}

Reason
@foreach(App\Models\NearMiss::$PickingReasonsOfNearMiss['picking_wrong_brand'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
picking_wrong_brand_cause_other) style="display:none" @endif>
@else @endif @endforeach
picking_wrong_item) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_picking_name'] ?? 'Picking' }}

{{ $data['extra_fields']['picking']['wrong_item']['label'] ?? 'Wrong item' }}

Reason
@foreach(App\Models\NearMiss::$PickingReasonsOfNearMiss['picking_wrong_item'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
picking_wrong_item_cause_other) style="display:none" @endif>
@else @endif @endforeach
picking_wrong_quantity) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_picking_name'] ?? 'Picking' }}

{{ $data['extra_fields']['picking']['wrong_quantity']['label'] ?? 'Wrong quantity' }}

Reason
@foreach(App\Models\NearMiss::$PickingReasonsOfNearMiss['picking_wrong_quantity'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
picking_wrong_quantity_cause_other) style="display:none" @endif>
@else @endif @endforeach
picking_wrong_strength) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_picking_name'] ?? 'Picking' }}

{{ $data['extra_fields']['picking']['wrong_strength']['label'] ?? 'Wrong strengths' }}

Reason
@foreach(App\Models\NearMiss::$PickingReasonsOfNearMiss['picking_wrong_strength'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
picking_wrong_strength_cause_other) style="display:none" @endif>
@else @endif @endforeach
picking_wrong_formulation) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_picking_name'] ?? 'Picking' }}

{{ $data['extra_fields']['picking']['wrong_formulation']['label'] ?? 'Wrong formulation' }}

Reason
@foreach(App\Models\NearMiss::$PickingReasonsOfNearMiss['picking_wrong_formulation'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
picking_wrong_formulation_cause_other) style="display:none" @endif>
@else @endif @endforeach
placing_basket_another_patient_label_basket) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_placing_into_basket_name'] ?? 'Placing into Basket' }}

{{$data['extra_fields']['placing_to_basket']["another_patient_label_basket"]['label'] ?? ($request->another_patient_label_basket_label ?? 'Another patient\'s labels in/on the basket')}}

Reason
@foreach(App\Models\NearMiss::$PlacingIntoBasketReasonsOfNearMiss['placing_basket_another_patient_label_basket'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
placing_basket_another_patient_cause_other) style="display:none" @endif>
@else @endif @endforeach
placing_basket_wrong_basket) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_placing_into_basket_name'] ?? 'Placing into Basket' }}

{{$data['extra_fields']['placing_to_basket']["wrong_basket"]['label'] ?? ($request->wrong_basket_label ?? 'Placed into the wrong basket')}}

Reason
@foreach(App\Models\NearMiss::$PlacingIntoBasketReasonsOfNearMiss['placing_basket_wrong_basket'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
placing_basket_wrong_basket_cause_other) style="display:none" @endif>
@else @endif @endforeach
placing_basket_missing_item) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_placing_into_basket_name'] ?? 'Placing into Basket' }}

{{$data['extra_fields']['placing_to_basket']["missing_item"]['label'] ?? ($request->missing_item_label ?? 'Missing item')}}

Reason
@foreach(App\Models\NearMiss::$PlacingIntoBasketReasonsOfNearMiss['placing_basket_missing_item'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
placing_basket_missing_item_cause_other) style="display:none" @endif>
@else @endif @endforeach
placing_basket_label_wrong_item) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_placing_into_basket_name'] ?? 'Placing into Basket' }}

{{$data['extra_fields']['placing_to_basket']["label_wrong_item"]['label'] ?? ($request->label_wrong_item_label ?? 'Label attached to the wrong item')}}

Reason
@foreach(App\Models\NearMiss::$PlacingIntoBasketReasonsOfNearMiss['placing_basket_label_wrong_item'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
placing_basket_wrong_item_cause_other) style="display:none" @endif>
@else @endif @endforeach
bagging_wrong_bag_label) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_bagging_name'] ?? 'Bagging' }}

{{ $data['extra_fields']['bagging']['wrong_bag_label']['label'] ?? 'Wrong bag label' }}

Reason
@foreach(App\Models\NearMiss::$BaggingReasonsOfNearMiss['bagging_wrong_bag_label'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
bagging_wrong_bag_label_cause_other) style="display:none" @endif>
@else @endif @endforeach
bagging_another_patient_med_in_bag) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_bagging_name'] ?? 'Bagging' }}

{{ $data['extra_fields']['bagging']['another_patient_med_in_bag']['label'] ?? 'Another patient\'s medication in bag' }}

Reason
@foreach(App\Models\NearMiss::$BaggingReasonsOfNearMiss['bagging_another_patient_med_in_bag'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
bagging_another_patient_med_in_bag_cause_other) style="display:none" @endif>
@else @endif @endforeach
bagging_missed_items) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_bagging_name'] ?? 'Bagging' }}

{{ $data['extra_fields']['bagging']['missed_items']['label'] ?? 'Missed out items' }}

Reason
@foreach(App\Models\NearMiss::$BaggingReasonsOfNearMiss['bagging_missed_items'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
bagging_missed_items_cause_other) style="display:none" @endif>
@else @endif @endforeach
preparing_dosette_tray_error_on_blister_pack) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_preparing_dosette_tray_name'] ?? 'Preparing Dosette Tray' }}

{{ $data['extra_fields']['preparing_dosette_tray']['preparing_dosette_tray_error_on_blister_pack']['label'] ?? 'Error on blister pack guide sheet' }}

Reason
@foreach(App\Models\NearMiss::$PreparingDosetteTrayReasonsOfNearMiss['preparing_dosette_tray_error_on_blister_pack'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
preparing_dosette_tray_blistring_cause_other) style="display:none" @endif>
@else @endif @endforeach
handing_out_to_wrong_patient) style="display:none" @endif>
{{ $data['what']['what_was_error']['error_handing_out_name'] ?? 'Handing Out' }}

{{ $data['extra_fields']['handing_out']['handed_to_wrong_patient_label'] ?? ($request->handed_to_wrong_patient_label ?? 'Handed to wrong patient') }}

Reason
@foreach(App\Models\NearMiss::$HandingReasonsOfNearMiss['handing_out_to_wrong_patient'] as $field=> $label) @if(Illuminate\Support\Str::contains($field,'other_field'))
handing_out_to_wrong_patient_cause_other) style="display:none" @endif>
@else @endif @endforeach