@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
@if ($document != null) @php $comment = getLastComment($document->id); @endphp @if ($comment)
Comments
{{ $comment->comments }}
@else
@csrf
Upload Document
@php $lastDocComment = getLastDocCommentData($document->parent_doc_id); @endphp

@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
@endif
@include('layout.footer')