@extends('adminlte::page') @section('title', 'Group Counseling Session Details') @section('content_header')

Group Counseling Session Details

@stop @section('content')

{{ $group->group_name }}

Edit
@csrf @method('DELETE')
{{-- Session Details --}}
Date: {{ $group->date }}
Time: {{ $group->time }}
Session Number: {{ $group->session_number ?? '-' }}
Presenting Problem: {{ $group->presenting_problem ?? '-' }}
Work Done: {{ $group->work_done ?? '-' }}
Assessment / Progress: {{ $group->assessment_progress ?? '-' }}
Intervention Plan: {{ $group->intervention_plan ?? '-' }}
Follow Up: {{ $group->follow_up ?? '-' }}
Created By: {{ $group->user?->name ?? '-' }}
Created At: {{ $group->created_at->format('Y-m-d H:i') }}
Updated At: {{ $group->updated_at->format('Y-m-d H:i') }}
{{-- Members --}}
Members / Students
@if($group->students->isNotEmpty())
    @foreach($group->students as $student)
  • {{ $student->first_name }} {{ $student->last_name }} ({{ $student->admission_no ?? '-' }})
  • @endforeach
@else

No students assigned to this group.

@endif
{{-- Biopsychosocial Formulation --}}
Biopsychosocial Formulation (4P's)
@php $formulation = $group->biopsychosocial_formulation ?? []; $pList = ['Predisposing', 'Precipitating', 'Perpetuating', 'Protecting']; $factors = ['biological', 'psychological', 'social']; @endphp @foreach($factors as $factor) @endforeach @foreach($pList as $p) @foreach($factors as $factor) @endforeach @endforeach
4 P's{{ ucfirst($factor) }}
{{ $p }}{{ $formulation[$p][$factor] ?? '-' }}
@stop