@include('layout.header') RAV Accreditation @if (count($errors) > 0)
Whoops! There were some problems with your input.

@endif
@include('layout.topbar')
@if (Auth::user()->role == '1') @include('layout.sidebar') @elseif(Auth::user()->role == '2') @include('layout.siderTp') @elseif(Auth::user()->role == '3') @include('layout.sideAss') @elseif(Auth::user()->role == '4') @include('layout.sideprof') @endif @include('layout.rightbar')
@if (Session::has('success')) @elseif(Session::has('fail')) @endif @if (!get_doccomment_status($doc_id))
@csrf

Create NC

@if (in_array(get_doccomment_status($doc_id), [1, 2]))

Document not approved - Rejected with @if (get_doccomment_status($doc_id) == 1) NC1 @elseif (get_doccomment_status($doc_id) == 2) NC2 @endif

@elseif (get_doccomment_status($doc_id) == 3)

Document not approved and this document has been sent to admin

@elseif (get_doccomment_status($doc_id) == 4)

Your Document has been approved

@else
0/500 characters
@if ($doc_latest_record->notApraove_count == 4)
@if ($doc_latest_record->notApraove_count == 4)

Final Approval Request

This request has been received, and it marks the last opportunity for review. If this file is found to be incorrect, the user will not be able to upload another file after this point.

@endif
@endif
@endif
@else
@if (in_array(get_doccomment_status($doc_id), [1, 2, 6, 5]))

@if (get_doccomment_status($doc_id) == 1) Document not approved - Rejected with NC1 @elseif (get_doccomment_status($doc_id) == 2) Document not approved - Rejected with NC2 @elseif (get_doccomment_status($doc_id) == 6) Document not approved - Rejected with NC3 @elseif (get_doccomment_status($doc_id) == 5) Request for final approval! @endif

@elseif (get_doccomment_status($doc_id) == 3)

Document not approved and this document has been sent to admin

@elseif (get_doccomment_status($doc_id) == 4)

Document has been approved

@else Something went wrong! Please contact administrator. @endif
@endif
@if (Session::has('sussess')) @elseif(Session::has('fail')) @endif
@php $pdfUrl = url('level' . '/' . $id); $fileExtension = pathinfo($pdfUrl, PATHINFO_EXTENSION); @endphp @if ($fileExtension == 'pdf')

Unable to display PDF. Download Document

@else Download Document @endif
@include('layout.footer')