@extends('layouts.vertical') @section('css') @endsection @section('breadcrumb')

{{$policy->name}}

Last updated: {{ date('d-m-Y, H:i', strtotime($policy->_updatedAt)) }}

@endsection @section('content') @if(isset($policy->reference))
Suggestions on what to include in this policy

{!!$policy->suggestions!!}

@endif
Description

{!! str_ireplace(array("\r\n\t",'\r\n\t',"\r\n",'\r\n',"\n",'\n',"\t",'\t'),'
',$policy->description) !!}

Upload a PDF
@if(isset($policy->documents) && !empty($policy->documents)) @foreach($policy->documents as $document) @php $ext = pathinfo($document->url, PATHINFO_EXTENSION); @endphp @endforeach @else Not uploaded @endif
Approved by
@if(isset($policy->approvedBy) && !empty($policy->approvedBy)) @foreach($policy->approvedBy as $person)

{{$person->name??""}} ({{$person->position??""}})

Sign
@endforeach @else
Not added
@endif
@if($policy->isPublic == true || (count($policy->childs) > 0)) Unshare policy or document @else Share policy or document @endif
@if(isset($signatures) && !empty($signatures)) @foreach($signatures as $signature) @endforeach @endif
Parent name Children name Parent’s signature Signed on
@if(isset($signature->parents) && !empty($signature->parents)) @foreach($signature->parents as $parent)
@if(isset($parent->profileImage)) Parent @endif
{{isset($parent->name) ? $parent->name : ""}}
@endforeach @else There are no parent's added for this child @endif
child
{{isset($signature->name) ? $signature->name : ""}}
@if(isset($signature->parents) && !empty($signature->parents)) @foreach($signature->parents as $parent)
@if($parent->signed == true) Sign @else Not Yet @endif
@endforeach @endif
@if(isset($signature->parents) && !empty($signature->parents)) @foreach($signature->parents as $parent)
@if($parent->signed == true) {{ \Carbon\Carbon::parse($parent->signedOn)->format('d/m/Y') }} @else - @endif
@endforeach @endif
@endsection @section('script-bottom') @endsection