@extends('themes.one.master') @php $pageInfo = []; $pageTitle = ''; foreach($pageSettings as $page){ if($page['page'] == $currentPageSlug){ $pageInfo = $page; $pageTitle = transField($pageInfo, 'title') ?? __('Teachers'); } } @endphp @section('title', $pageTitle) @section('content') @if(!empty($banner))

{{ transField($banner, 'title') }}

@else

{{ $pageTitle }}

@endif @if(page_enabled('teachers') && !empty($ourTeams)) @php $teacherMeta = ($pageSettingsBySlug ?? collect())->get('teachers'); $title = transField($teacherMeta, 'title') ?? __('Meet Our Team'); $descHtml = transField($teacherMeta, 'description') ?? ""; @endphp

{{ $title }}

{!! $descHtml !!}

@php $teams = $ourTeams instanceof \Illuminate\Support\Collection ? $ourTeams : collect($ourTeams); @endphp @foreach ($teams->chunk(4) as $chunkIndex => $chunk)
@foreach ($chunk as $colIndex => $item) @php $img = $item['image'] ?? ''; $name = transField($item, 'title') ?? '—'; $role = transField($item, 'designation') ?? ''; $face = $item['facebook_url'] ?? null; $tw = $item['twitter_url'] ?? null; $ln = $item['linkedin_url'] ?? null; $ig = $item['instagram_url'] ?? null; $isLastInRow = ($colIndex === 3); $secondRow = $chunkIndex !== 0 ? " mb-xl-0" : ""; $colClasses = 'col-xl-3 col-lg-6 col-sm-6 mb-4' . ($isLastInRow ? ' mb-sm-0' : $secondRow) ; @endphp
{{ e($name) }}
{{ e($name) }} @if($role)

{{ e($role) }}

@endif
    @if($face)
  • @endif @if($tw)
  • @endif @if($ln)
  • @endif @if($ig)
  • @endif
@endforeach
@endforeach
@endif @include('themes.one.sections.subscribe') @endsection