<?php
$parsed = null;
if(@$json) {
    try {
        $parsed = json_decode($json);
    }
    catch (Exception $e) {}
}
?>
@if($parsed)
    <div>
        @if(count($parsed))
            @foreach($parsed as $activity)
                <div class="">
                    <div class="font-weight-bold">{{$activity->name}}</div>
                    <div class="pl-3">
                        <div>Completed: <b>{{$activity->done}}</b></div>
                        @if($activity->done === 'No')
                            <div>Reason: <b>{{$activity->notDoneReason}}</b></div>
                        @else
                            <div>Experience: <b>{{$activity->doneExperience}}</b></div>
                            <div>Pain: <b>{{$activity->donePain}}</b></div>
                            <div>Remarks: <b>{{$activity->doneRemarks}}</b></div>
                        @endif
                    </div>
                </div>
            @endforeach
        @endif
    </div>
@endif
