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