@extends('adminlte::page') @section('title', 'Action Details') @section('content_header')

{{ $threat->threat_name }}

@endsection @section('content') {!! html()->form('POST', route('threat-action.store'))->id('threatActionForm')->open() !!}
{{-- Action Name --}}
{!! html()->label('Action Name *', 'action_name') !!} {!! html()->text('action_name')->id('inputActionName')->placeholder('Enter Action name ...')->class('form-control')->required() !!}
{{-- Threat --}}
@php $config = [ "placeholder" => "Select Threat", "allowClear" => false, ]; @endphp Threat * @foreach($threatOptions as $key => $value) @endforeach {!! html()->hidden('threat_id', $threat_id)->id('hiddenThreatId') !!}
{{-- Action Type --}}
{!! html()->label('Action Type *', 'action_type') !!} {!! html()->select('action_type', ['' => 'Select Phase', 'Long Term Solution' => 'Long Term Solution', 'Interim Mitigation' => 'Interim Mitigation'], '') ->id('inputActionType') ->class('form-control custom-select') ->required() !!}
{{-- Assign to Contact --}}
@php $config = [ "placeholder" => "Select a user", "allowClear" => false, ]; @endphp Assigned to Action Owner * @foreach($userOptions as $key => $label) @endforeach
{{-- Status --}}
{!! html()->label('Status *', 'status') !!} {!! html()->select('status', ['' => 'Select Status', 'Open' => 'Open', 'Completed' => 'Completed', 'In Progress' => 'In Progress', 'On Hold' => 'On Hold', 'Cancelled' => 'Cancelled'], '') ->id('Status') ->class('form-control custom-select') ->required() !!}
{{-- Start Date --}}
@php $config = ['format' => 'DD-MM-YYYY']; @endphp
{{-- Description --}}
{!! html()->label('Description *', 'description') !!} {!! html()->textarea('description')->class('form-control')->placeholder('Enter Description ...')->rows(3)->required() !!}
{{-- Commentary --}}
{!! html()->label('Commentary *', 'commentary') !!} {!! html()->textarea('commentary')->class('form-control')->placeholder('Enter Commentary ...')->rows(3)->required() !!}
{{-- Due Date --}}
{{-- Send Notification Email --}}
{!! html()->label('Send Notification Email', 'is_email_notification') !!}
{!! html()->checkbox('is_email_notification', true, true)->class('form-check-input')->id('is_email_notification') !!}
{{-- Completion Date --}}
{!! html()->label('Completion Date', 'completion_date') !!}

{{ $completionDate ?? 'N/A' }}

-

-

-

-

{!! html()->a('javascript:history.go(-1)', 'Cancel')->class('btn btn-default') !!} {!! html()->submit('Save Changes')->id('threate-action-save-button')->class('btn btn-success float-right') !!}
{!! html()->form()->close() !!} @endsection @push('js') @endpush