@if($type == 'AUDIT') @php($indiduallist = json_decode($checklist->individuals_json)) @if(count($indiduallist) > 0) @foreach($indiduallist as $key=>$indidual) @endforeach @endif @endif
CONFIDENTIAL
UNAUTHORIZED USE, DISCLOSURE OR COPYING OF THIS DOCUMENT IS NOT PERMITTED
1.0 ADMINISTRATIVE INFORMATION
1.1 Audit Number: {{ $checklist->audit_number!=null ? $checklist->audit_number : '' }}
1.2 Audit Date: @if($type == 'AUDIT') {{ $checklist->start_date != null ? $checklist->start_date : '' }}{{ $checklist->end_date != null ? ' to '.$checklist->end_date : '' }} @endif
1.3 Audit Title: {{ $checklist->title !=null ? $checklist->title : '' }}
1.4 Location: @if($type == 'AUDIT'){{ $checklist->location != null ? $checklist->location : '' }}@endif
1.5 Audit Team Lead Auditor: @if($checklist->lead_auditor != null){{ $checklist->lead_auditor_name != null ? $checklist->lead_auditor_name : ($checklist->lead_auditor!=null ? $checklist->lead_auditor : '') }} @else {{ $checklist->checklist_lead!=null ? $checklist->checklist_lead : '' }} @endif Auditors: @if($checklist->auditors_json!=null) @foreach(json_decode($checklist->auditors_json) as $key=>$auditor)

{{ ($key+1).'. '.$auditor->name }}

@endforeach @endif
2.0 AUDIT OBJECTIVE
{!! $checklist->audit_objective!=null ? $checklist->audit_objective : '' !!}
3.0 AUDIT SCOPE
{!! $checklist->audit_scope!=null ? $checklist->audit_scope : '' !!}
4.0 REFERENCE MATERIAL
{!! $checklist->reference_material!=null ? $checklist->reference_material : '' !!}
INDIVIDUALS INTERVIEWED (FULL NAME) TITLE (POSITION HELD)
{{ ($key+1).'. '.$indidual->name }} {{ $indidual->position }}
5.0 EXECUTIVE SUMMARY:
{!! $checklist->findings!=null ? $checklist->findings : '' !!}
@php($nctrack = 1) @if($checklist->question_json != null) @foreach(json_decode($checklist->question_json) as $section) @if($section->questions_json != null && count($section->questions_json)>0) @foreach($section->questions_json as $question) @php($actionjsonmain = $question->action_json != null ? json_decode($question->action_json) : null) @if($actionjsonmain != null) @foreach($actionjsonmain as $actionjson) @php($nctrack++) @endforeach @endif @endforeach @endif @endforeach @endif
6.0 SUMMARY OF NON-COMFORMANCES
{{ 'NCR00'.$nctrack }} @php($statusjson = $actionjson->status != null ? $actionjson->status : null) @if($statusjson != null) @foreach($statusjson as $status) @if($status->is_active == 'Yes') {{ $status->statustext }} @endif @endforeach @endif
Severity: @php($leveljson = $actionjson->priority != null ? $actionjson->priority : null) @if($leveljson != null) @foreach($leveljson as $level) @if($level->is_active == 'Yes') {{ $level->prioritytext }} @endif @endforeach @endif
Responsible: @php($assigned_tojson = $actionjson->assigned_to != null ? $actionjson->assigned_to : null) @if($assigned_tojson != null) {{ $assigned_tojson->user_email != null ? $assigned_tojson->user_name.' - '.$assigned_tojson->user_email : '' }} @endif
Standard: {!! $question->question != null ? $question->question : '' !!}
Finding: {!! $actionjson->description != null ? $actionjson->description : '' !!}
7.0 REPORTED BY
NAME: {{ $checklist->lead_auditor_name != null ? $checklist->lead_auditor_name : '' }}
JOB TITLE: {{ $checklist->designation != null ? $checklist->designation : '' }}
SIGNATURE: {{ $checklist->lead_auditor != null ? $checklist->lead_auditor : '' }}
DATE: @if($type == 'AUDIT') {{ $checklist->start_date != null ? $checklist->start_date : '' }}{{ $checklist->end_date != null ? ' to '.$checklist->end_date : '' }} @endif
stamp