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

Risk Tolerance

@endsection @section('content')
@include('flash::message')
@foreach($tolerances as $tolerance) @php $accountTolerance = $account->tolerances->where('id', $tolerance->id)->first(); @endphp @endforeach
# RISK CONDITION SERVICE TOLERANCE VALUE, h TOLERANCE LEVEL
{{ $loop->iteration }} {{ $tolerance->condition }} {{ $tolerance->services->pluck('short_name')->implode(', ') }} @if(\App\Models\GmpRoles::canSeeLink(\App\Models\GmpRoles::EDIT_TOLERANCE)) @else {{ data_get($accountTolerance, 'pivot.value') }} @endif @if(\App\Models\GmpRoles::canSeeLink(\App\Models\GmpRoles::EDIT_TOLERANCE)) @else @php $level = data_get($levels, data_get_d($accountTolerance, 'pivot.level'), null); @endphp {{ is_array($level) ? null : $level }} @endif
@endsection @section('scripts') @endsection