@extends('layouts.main_frontend') @section('title','RCSA - Edit Organization Form') @section('main-content') Edit Organization @csrf @method('PUT') Organization Name * RCSA Unit * @foreach($unitTypeArr as $key => $val) unit_type_id : old('rcsa_unit')) == $key ? 'selected' : '' }}>{{ ucwords($val) }} @endforeach Number of RCSA Units * Reporting Currency * @foreach($currencyArr as $key => $val) currency_id : old('rcsa_unit')) == $key ? 'selected' : '' }}>{{ ucwords($val) }} @endforeach Unit Details @foreach($orgunits as $unit) Unit {{ $key_fields }} Unit Name Unit POC Name Unit POC Email Unit POC Phone Country Code @if($countries) @foreach($countries as $key => $val) id ? 'selected' : '' }}> {{ $val->dial_code.' '.$val->name }} @endforeach @endif Unit Head Name Unit Head Email Unit Head Phone Country Code @if($countries) @foreach($countries as $key => $val) id ? 'selected' : '' }}> {{ $val->dial_code.' '.$val->name }} @endforeach @endif Unit Reporting Currency @foreach($unitCurrencyArr as $key => $val) {{ ucwords($val) }} @endforeach @endforeach Organisation POC Name * Organisation POC Email * Organisation POC Phone * Country Code @if($countries) @foreach($countries as $key => $val) org_poc_country_code : old('organisation_poc_country_code')) == $val->id ? 'selected' : '' }} > {{ $val->dial_code.' '.$val->name }} @endforeach @endif Risk Matrix Select Risk Matrix matrix_length : old('risk_matrix')) == '3' ? 'selected' : '' }}>3*3 Matrix matrix_length : old('risk_matrix')) == '4' ? 'selected' : '' }}>4*4 Matrix matrix_length : old('risk_matrix')) == '5' ? 'selected' : '' }}>5*5 Matrix Matrix Risk Rating Risk Rating Description Illustrative Description Threshold Illustrative Threshold @php $sections = [1=>'likelihood',2=>'impact',3=>'control rating effectiveness',4=>'design']; $illustrative = [3=>['desc'=>['Low','Medium','High'],'threshold'=>['0-10','11-50','51-100']], 4=>['desc'=>['Low','Medium','High','Critical'],'threshold'=>['0-10','11-25','26-60','61-100']], 5=>['desc'=>['Very Low','Low','Medium','High','Very High'],'threshold'=>['0-10','11-20','21-40','51-70','71-100']], ]; $risk_matrix = json_decode($model->risk_matrix,true); @endphp @if(!empty($risk_matrix)) @foreach($risk_matrix as $section=>$matrix) @if($section<=2) @foreach($matrix as $key=>$row) @if($key<=1) {{@ucwords($sections[$section])}} @else @endif {{$key}} {{@$illustrative[count($matrix)]['desc'][$key-1]}} @if($section<=2) {{@$illustrative[count($matrix)]['threshold'][$key-1]}} @endif @endforeach @endif @endforeach @endif Upload Documents Supports : pdf / word / excel / jpg @if(isset($orgDocs) && !empty($orgDocs)) @foreach($orgDocs as $docs) Uploaded Previous RCSA Documents {{$num}} @if($docs->file_type=='jpg') @else @endif {{ basename($docs->file_path) }} {{ formatSizeUnits($docs->file_size) }} @endforeach @endif Save @endsection @section('additionaljs') @endsection
Supports : pdf / word / excel / jpg
{{ basename($docs->file_path) }}