@php $tabs = [ ['id' => 'patient_safety_incidents', 'label' => 'Patient Safety Incidents'], ['id' => 'controlled_drug_management', 'label' => 'Controlled Drug Management'], ['id' => 'central_fulfillment', 'label' => 'Central Fulfillment'], ['id' => 'freedom_to_speak_up', 'label' => 'Freedom To Speak Up'], ['id' => 'pharmacy_premises_inspection', 'label' => 'Pharmacy Premises Inspection'], ['id' => 'nhs_and_iG', 'label' => 'NHS and IG'], ['id' => 'Field_Managers', 'label' => 'Field Managers'], ['id' => 'monthly_board_report', 'label' => 'Board Report'], ['id' => 'customer_satisfaction_score', 'label' => 'Customer Experience'], ['id' => 'operations_report', 'label' => 'Operations Report'], ['id' => 'MDSCF', 'label' => 'MDSCF'], ['id' => 'patient_safety_report_compliance_dashboard', 'label' => 'Patient Safety Report Compliance Dashboard'] ]; @endphp @extends('layouts.head_office_app') @section('title', 'Dashboard') @section('styles') @endsection @section('content')
Dashboard

@if ($headOffice->id == '37')
@php $sections = $savedReports ->where('dashboard', 'patient_safety_incidents') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'patient_safety_incidents', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'controlled_drug_management') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'controlled_drug_management', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'central_fulfillment') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'central_fulfillment', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'freedom_to_speak_up') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'freedom_to_speak_up', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'pharmacy_premises_inspection') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'pharmacy_premises_inspection', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'nhs_and_iG') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'nhs_and_iG', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'Field_Managers') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'Field_Managers', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'monthly_board_report') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'monthly_board_report', 'section' => $section, ]) @endforeach

Customer Satisfaction Score

@php $sections = $savedReports ->where('dashboard', 'customer_satisfaction_score') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'customer_satisfaction_score', 'section' => $section, ]) @endforeach

Operations Report

@php $sections = $savedReports ->where('dashboard', 'operations_report') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'operations_report', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'MDSCF') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'MDSCF', 'section' => $section, ]) @endforeach
@php $sections = $savedReports ->where('dashboard', 'patient_safety_report_compliance_dashboard') ->pluck('section') ->unique(); @endphp @foreach ($sections as $section)
{{ $section }}
@include('head_office.reports', [ 'reports' => $savedReports, 'dashboard' => 'patient_safety_report_compliance_dashboard', 'section' => $section, ]) @endforeach
@endif @include('layouts.error')
@endsection