@extends('adminlte::page') @section('title', 'Threat Details') @section('content_header') @include('backend.threats.threatDetail._header', ['threat' => $threat]) @include('backend.threats.threatDetail._summary', ['threat' => $threat]) @endsection @section('content') @php $disabled = ''; if ($latestApprovalRequest && $latestApprovalRequest->status == 'Pending') { $disabled = 'disabled'; } if ($disabled == '') { $disabled = !auth()->user()->hasRole('Admin') && $threat->overall_status == 'Cancelled' ? 'disabled' : ''; } @endphp
@if ( (Auth::user()->role == \App\Models\User::$user_types_names['Admin'] || Auth::user()->id == $threat->owner_id) && $latestApprovalRequest && $latestApprovalRequest->status == 'Pending') @endif @if ($showAdvanceButton) @endif
@php $editableOverallStatus = (!auth()->user()->hasRole('Admin') && $threat->overall_status =='Cancelled' ) ? '1' : '0'; @endphp @if ( $isApprover && $isApprovalRequestOfCurrentUser )

Approver Actions

@endif @include('backend.threats.threatDetail._ranking', [ 'threat' => $threat, 'details' => $details, 'unitRanking' => $unitRanking, 'subUnitRanking' => $subUnitRanking, 'siteRanking' => $siteRanking, 'rankOfSite' => $rankOfSite, 'rankOfSubUnit' => $rankOfSubUnit, 'rankOfUnit' => $rankOfUnit, ])
@include('backend.threats.threatDetail._tab_details', [ 'threat' => $threat, 'details' => $details, ])
@include('backend.threats.threatDetail._tab_additional', ['threat' => $threat])
Cancel
@include('backend.my_approvals.modals-myapprovals', ['threat' => $threat]) @endsection @push('js') @endpush