@php $userType = App\Models\Threat::getCurrentUser()->role; @endphp
{!! html()->label('Level 1 (Site) *', 'asset_level_1')->toHtml() !!} {!! html()->select( 'asset_level_1', ['' => 'Select Site'] + ($masterSites->toArray() ?? []), old('asset_level_1', isset($threat) ? $threat->asset_level_1 : ''), // DB record value when editing )->class('form-control')->id('add_threat_popup_master_site_id')->attribute('required') !!}
{!! html()->label('Level 3 (Unit) *', 'asset_level_3') !!} {!! html()->select( 'asset_level_3', ['' => 'Select Unit'] + ($businessUnits ?? collect())->toArray(), old('asset_level_3'), )->id('add_threat_popup_businessUnit')->class('form-control')->attribute('data-selected', old('asset_level_3'))->attribute('required') !!}
{!! html()->label('Unit *', 'master_unit_id') !!} {!! html()->select( 'master_unit_id', ['' => 'Select Unit'], old('master_unit_id'), )->id('add_threat_popup_master_unit')->class('form-control')->attribute('data-selected', old('master_unit_id'))->attribute('required') !!}
{!! html()->label( 'Level 2 (Business Site) *', 'businessSite', ) !!} {!! html()->select( 'asset_level_2', ['' => 'Select Business Site'] + ($businessSites ?? collect())->toArray(), old('asset_level_2', $asset_level_2 ?? ''), )->id('add_threat_popup_businessSite')->class('form-control')->attribute('data-selected', old('asset_level_2'))->attribute('required') !!}
{!! html()->label('Level 4 (Sub Unit) *', 'asset_level_4') !!} {!! html()->select( 'asset_level_4', ['' => 'Select Sub Unit'] + ($businessSubUnits ?? collect())->toArray(), old('asset_level_4', $asset_level_4 ?? ''), )->id('add_threat_popup_business_sub_unit')->class('form-control')->attribute('data-selected', old('asset_level_4'))->attribute('required') !!}
@php $defaultPlaceholder = "Guidelines for MTO Users What is the problem? a. Expected: What was expected to happen prior to the event? b. Actual: What actually happened. c. Impact: Consequence as a result of the event (potential and actual)?"; @endphp
@push('js') @endpush