@extends('layouts.main_layout') @section('title','RCSA - Edit Organization Form') @section('main-content') {{ session()->has('flash_message') ? session()->get('flash_message') : '' }} 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 Unit 1 Unit Name * {!! $errors->first('unit_name[]', ':message') !!} Unit POC Name * {!! $errors->first('unit_poc_name[]', ':message') !!} Unit POC Email * {!! $errors->first('unit_poc_email[]', ':message') !!} Unit POC Phone * Country Code @if($countries) @foreach($countries as $key => $val) unit_poc_country_code : old('unit_poc_country_code')) == $val->id ? 'selected' : '' }}> {{ $val->dial_code.' '.ucwords($val->name) }} @endforeach @endif {!! $errors->first('unit_poc_phone_number[]', ':message') !!} Unit Head Name * {!! $errors->first('unit_head_name[]', ':message') !!} Unit Head Email * {!! $errors->first('unit_head_email[]', ':message') !!} Unit Head Phone * Country Code @if($countries) @foreach($countries as $key => $val) unit_head_country_code : old('unit_head_country_code')) == $val->id ? 'selected' : '' }}> {{ $val->dial_code.' '.ucwords($val->name) }} @endforeach @endif {!! $errors->first('unit_head_phone_number[]', ':message') !!} Unit Reporting Currency * @foreach($unitCurrencyArr as $key => $val) currency_id : old('rcsa_unit')) == $key ? 'selected' : '' }}>{{ ucwords($val) }} @endforeach {!! $errors->first('unit_reporting_currency[]', ':message') !!} 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.' '.ucwords($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 Previous RCSA 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 @csrf @method('DELETE') Remove RCSA Doc × Do you want to delete this RCSA document ? @csrf @method('DELETE') Remove Unit × Do you want to delete this units record ? @endsection @section('additionaljs')
:message
Supports : pdf / word / excel / jpg
{{ basename($docs->file_path) }}
Do you want to delete this RCSA document ?
Do you want to delete this units record ?