{{-- Session Details --}}
| Student Name |
{{ $individualSessionReport->student->first_name ?? '-' }} {{ $individualSessionReport->student->last_name ?? '-' }} |
| Date |
{{ \Carbon\Carbon::parse($individualSessionReport->date)->format('d M, Y') ?? '-' }} |
| Time |
{{ $individualSessionReport->time ?? '-' }} |
| Session Number |
{{ $individualSessionReport->session_number ?? '-' }} |
| Presenting Problem |
{{ $individualSessionReport->presenting_problem ?? '-' }} |
| Work Done |
{{ $individualSessionReport->work_done ?? '-' }} |
| Assessment & Progress |
{{ $individualSessionReport->assessment_progress ?? '-' }} |
| Intervention Plan |
{{ $individualSessionReport->intervention_plan ?? '-' }} |
| Follow Up |
{{ $individualSessionReport->follow_up ?? '-' }} |
| Counselor |
{{ $individualSessionReport->counselor->name ?? '-' }} |
{{-- Biopsychosocial Formulation (4P's) --}}
@if(!empty($individualSessionReport->biopsychosocial_formulation))
@php
$formulation = $individualSessionReport->biopsychosocial_formulation;
$pList = ['Predisposing', 'Precipitating', 'Perpetuating', 'Protecting'];
$factors = ['biological', 'psychological', 'social'];
$isNested = false;
foreach ($pList as $p) {
if(isset($formulation[$p]) && is_array($formulation[$p])) {
$isNested = true;
break;
}
}
@endphp
Biopsychosocial Formulation (4P's)
@if($isNested)
| P Factor |
@foreach($factors as $factor)
{{ ucfirst($factor) }} |
@endforeach
@foreach($pList as $p)
| {{ $p }} |
@foreach($factors as $factor)
{{ $formulation[$p][$factor] ?? '-' }} |
@endforeach
@endforeach
@else
@foreach($formulation as $key => $value)
- {{ ucfirst($key) }}: {{ $value }}
@endforeach
@endif
@endif