@if($type == 'AUDIT') @php($indiduallist = json_decode($checklist->individuals_json)) @if(count($indiduallist) > 0) @foreach($indiduallist as $key=>$indidual) @endforeach @endif
1.0 ADMINISTRATIVE INFORMATION
1.1 Audit Number: {{ $checklist->audit_number!=null ? $checklist->audit_number : '' }}
1.2 Audit Date: {{ $checklist->start_date != null ? $checklist->start_date : '' }}{{ $checklist->end_date != null ? ' to '.$checklist->end_date : '' }}
1.3 Audit Title: {{ $checklist->title!=null ? $checklist->title : '' }}
1.4 Location: {{ $checklist->location != null ? $checklist->location : '' }}
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 @else @if($checklist->checklist_auditors!=null) @foreach(json_decode($checklist->checklist_auditors) as $key=>$auditor)

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

@endforeach @endif @endif
1.6 AUDIT OBJECTIVE
{!! $checklist->audit_objective!=null ? $checklist->audit_objective : '' !!}
1.7 AUDIT SCOPE
The audit will be conducted to cover the following areas: All areas
{!! $checklist->audit_scope!=null ? $checklist->audit_scope : '' !!}
1.8 REFERENCE MATERIAL
The following documents will be used as reference material for this audit:
{!! $checklist->reference_material!=null ? $checklist->reference_material : '' !!}
INDIVIDUALS INTERVIEWED (FULL NAME) TITLE (POSITION HELD)
{{ ($key+1).'. '.$indidual->name }} {{ $indidual->position }}
@endif {{--TODO:RENDER BODY FROM PHP CONTROLLER--}} {!! $render_body !!} {{--@if($checklist->question_json != null) @foreach(json_decode($checklist->question_json) as $section) @if($section->section != null && $section->section != '') @endif @if($section->questions_json != null && count($section->questions_json)>0) @foreach($section->questions_json as $question) @endforeach @endif @endforeach
{{ $section->section }}
{!! $question->question !!}
@endif--}} @if($type == 'AUDIT')
3.0 AUDIT SUMMARY
{!! $checklist->findings!=null ? $checklist->findings : '' !!}
5.0 AUDITOR(S)’ DETAILS
Auditor(s): {{ $checklist->lead_auditor_name!=null ? $checklist->lead_auditor_name : '' }}
Date: {{ $checklist->start_date != null ? $checklist->start_date : '' }}{{ $checklist->end_date != null ? ' to '.$checklist->end_date : '' }}
Signature: {{ $checklist->lead_auditor != null ? $checklist->lead_auditor : '' }}
@endif