@extends('core::public.psim') @section('title', $model->meta_title) @section('ogTitle', $model->meta_title) @section('description', $model->meta_description) @section('keywords', $page->meta_keywords) @section('ogImage', $model->present()->ogImage()) @section('bodyClass', 'body-chapters body-chapter-' . $model->id . ' body-page body-page-' . $page->id) @section('content')

Chapters

{{ $model->title }}
@if($model->staffs && is_array($model->staffs)) @php $validStaffIds = array_filter($model->staffs, fn($id) => !is_null($id) && $id !== ''); @endphp @endif @if(!empty($validStaffIds)) @if($head = TypiCMS\Modules\Teams\Models\Team::whereIn('id',$model->staffs)->orderByRaw("FIELD(id, " . implode(',', $model->staffs) . ")")->get() and $head->count() > 0)
@foreach ($head as $i => $item) @if ($loop->first)
{{$item->title}}

{{$item->title}}

{{$item->psim_designation}}

@endif @endforeach
@foreach ($head as $i => $item) @if ($loop->index >= 1 && $loop->index <= 3)
{{$item->title}}

{{$item->title}}

{{$item->psim_designation}}

@endif @endforeach
@foreach ($head as $i => $item) @if ($loop->index >= 4 && $loop->index <= 6)
{{$item->title}}

{{$item->title}}

{{$item->psim_designation}}

@endif @endforeach
@empty(!$model->summary)
{!! $model->present()->summary !!}
@endempty
@endif @endif @php $counter = 1; $totalSCount = $model->conference->count()+$model->course->count()+$model->academicevent->count(); @endphp @if($totalSCount > 0)

ACTIVITIES

@if($model->conference->count() > 0) @foreach ($model->conference as $i => $item)
{{ $item->title }}

{{ Str::words(strip_tags($item->summary), 10, '...') }}

  {{ $item->dateLocalized()}}    {{ Str::limit($item->venue, 30, '...')}}
@php $counter++; @endphp @endforeach @endif @if($model->course->count() > 0) @foreach ($model->course as $i => $item)
{{ $item->title }}

{{ Str::words(strip_tags($item->summary), 10, '...') }}

  {{ $item->dateLocalized()}}    {{ Str::limit($item->venue, 30, '...')}}
@php $counter++; @endphp @endforeach @endif @if($model->academicevent->count() > 0) @foreach ($model->academicevent as $i => $item)
{{ $item->title }}

{{ Str::words(strip_tags($item->summary), 10, '...') }}

  {{ $item->dateLocalized()}}    {{ Str::limit($item->venue, 30, '...')}}
@php $counter++; @endphp @endforeach @endif
@php $j=0; @endphp @foreach (['conference', 'course', 'academicevent'] as $type) @if($model->$type->count() > 0) @foreach ($model->$type as $i => $item) @php $isHidden = $j >= 3 ? 'chhidden-items' : ''; @endphp @php $j++; @endphp @endforeach @php $j++; @endphp @endif @endforeach
@if ($totalSCount > 3)
@endif
@endif @if($model->child->count() > 0)

UAE CHAPTERS

@php $counter=1; @endphp @foreach ($model->child as $i => $item) @php $counter++; @endphp @endforeach
@foreach ($model->child as $i => $item) @endforeach
@endif

MEMBERS

Total Members: 0

Page 1 of 1

S.No Full Name Designation Institute Membership Status
@endsection