@extends('layouts.layoutMaster') @section('title', 'OMM-Reports') @section('vendor-style') @vite(['resources/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.scss', 'resources/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.scss', 'resources/assets/vendor/libs/select2/select2.scss', 'resources/assets/vendor/libs/@form-validation/form-validation.scss', 'resources/assets/vendor/libs/animate-css/animate.scss', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.scss']) @endsection @section('vendor-script') @vite(['resources/assets/vendor/libs/moment/moment.js', 'resources/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js', 'resources/assets/vendor/libs/select2/select2.js', 'resources/assets/vendor/libs/@form-validation/popular.js', 'resources/assets/vendor/libs/@form-validation/bootstrap5.js', 'resources/assets/vendor/libs/@form-validation/auto-focus.js', 'resources/assets/vendor/libs/cleavejs/cleave.js', 'resources/assets/vendor/libs/cleavejs/cleave-phone.js', 'resources/assets/vendor/libs/sweetalert2/sweetalert2.js']) @endsection @section('content') {{--

All Over Average Performance

--}} {{--

--}} {{-- --}}

Average Performance Across Sections

All Over Sections Average

{{--

Section Performance Levels

--}} {{-- @foreach ($sectionData as $sectionId => $data)
{{ $data['name'] }}
{{ $data['description'] }}
@endforeach --}}

Average Performance Scores by Section

Average Performance Scores by Pillar

Average Performance Scores by Question

@php use Illuminate\Support\Str; @endphp @foreach ($pillarDatas as $pillar)
{{ $pillar['pillar_name'] }}
@endforeach
@foreach ($print_section as $s) @php $answeredQuestions = $questions ->where('section_id', $s->id) ->filter(function ($print_question) use ($print_answers, $s) { return $print_answers ->where('question_id', $print_question->id) ->where('section_id', $s->id) // ->where('user_id', auth()->user()->id) ->isNotEmpty(); }); @endphp
Block - {{ $s->pillar->name }}
@foreach ($answeredQuestions as $q)
{{ $s->section_name }} - {{ $q->question_text }}
@php $userAnswers = $print_answers ->where('question_id', $q->id) ->where('section_id', $s->id) // ->where('user_id', auth()->user()->id); @endphp @foreach ($userAnswers as $userAnswer) @if ($q->type == 'radio') @foreach (json_decode($q->options) as $option) @endforeach @endif @endforeach @foreach ($userAnswers as $userAnswer) @endforeach
Nascent Stable Maturing Efficient World Class
{{ $option }}
@if ($q->type === 'text' || $q->type === 'textarea')

{{ $userAnswer->answer ?? 'No Answer' }}

@elseif ($q->type === 'radio')
{{ 'Current Level' }}
{{ 'After Three Years' }}
@endif
@endforeach @endforeach

Assessment Comments:

{{ $comment ?? '' }}

Scope of Assessment

This OMM Assessment was conducted by {{ $name }}. The Assessment Record number, and the dates are listed as follows.

@php $date = \Carbon\Carbon::now()->format('d/m/Y'); @endphp
ASSESSMENT DETAILS
Date of Assessment {{ $date }}
Company Name {{ $company_details }}
Location {{ $located }}
Industry Group {{ $Primary }}

@if ($business_goals) @foreach (json_decode($business_goals) as $kpi) @endforeach @endif
KPI
{{ $kpi }}
@if ($drivers) @foreach (json_decode($drivers) as $driver) @endforeach @endif
Cost Driver
{{ $driver }}
@if ($tools) @endif
Tools & Concepts
{{ implode(', ', json_decode($tools)) }}
Back {{-- --}}
@endsection