@extends('adminlte::page') @section('title', 'Individual Session Report Details') @section('content_header')

Individual Session Report

@stop @section('content')

{{ $individualSessionReport->student->first_name ?? '-' }} {{ $individualSessionReport->student->last_name ?? '' }}

Back Edit
{{-- 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)
@foreach($factors as $factor) @endforeach @foreach($pList as $p) @foreach($factors as $factor) @endforeach @endforeach
P Factor{{ ucfirst($factor) }}
{{ $p }}{{ $formulation[$p][$factor] ?? '-' }}
@else @endif @endif
@stop