@extends('layouts.main') @section('title', 'Risk Determination') @section('breadcrumb')

Risk Determination

@endsection @section('content')
@include('flash::message')
@foreach($types as $type => $typeTitle) @php $currentGroups = collect(data_get($groups, $type, [])); $isFirst = true; @endphp @if($currentGroups->isEmpty()) @endif @foreach($currentGroups as $gr) {{-- Item --}} {{-- Assumption --}} {{-- Service --}} {{-- Weight --}} {{-- State --}} @foreach($gr->riskAssumptionItems as $item) {{-- Item --}} {{-- Assumption --}} {{-- Service --}} {{-- Weight --}} {{-- State --}} @php $state = $services->intersect($item->services->pluck('id'))->isNotEmpty(); @endphp @endforeach @endforeach @endforeach
Item Assumption Service Weight State
{{ $typeTitle }}
@if($isFirst) {{ $typeTitle }} @endif @php $isFirst = false; @endphp {{ $gr->name }} {{ "{$gr->weight}%" }}
{{ $item->name }}{{ $item->service_titles }} !$state, 'state-green' => $state, ])> @if($state) @else @endif
@endsection @section('scripts') @endsection