@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->teachers) > 0)) Unshare policy or document @else Share policy or document @endif
@if(isset($signatures) && !empty($signatures)) @foreach($signatures as $signature) @endforeach @endif
Educator name Educator’s signature Signed on
Educator
{{$signature->firstName}} {{$signature->lastName}}
@if($signature->signed == true) Sign @else Not Yet @endif
@if($signature->signed == true) {{ \Carbon\Carbon::parse($signature->signedOn)->format('d/m/Y') }} @else - @endif
@endsection @section('script-bottom') @endsection