@include('layout.header') RAV Accreditation
@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 ($message = Session::get('success')) @endif
@php $document = checkOnSiteDoc($applicationData->id, $questionID, $courseID, auth()->user()->id); @endphp @if ($document != null) @php $comment = getLastComment($document->id); @endphp @if ($comment)
Comments
{{ $comment->comments }}
@endif
ON SITE ASSESSOR
@php $pdfUrl = url('level' . '/' . $document->doc_file); $fileExtension = pathinfo($pdfUrl, PATHINFO_EXTENSION); @endphp @if ($fileExtension === 'pdf')

Unable to display PDF. Download Document

@else Download Document @endif
@else
@csrf
Upload Document

@endif
@include('layout.footer')