{{ $department->name }}
{{-- Department slider (increased height) --}} @if($department->sliders->isNotEmpty()) @endif {{-- Accordion panels --}}
@php
$sections = [
'About Us' => nl2br(e($department->about)),
'What We Do' => nl2br(e($department->what_we_do)),
'Programs' => nl2br(e($department->programs)),
'Our Staff' => ($department->leaders->isNotEmpty()
? '
'
: '
" ."Phone: {$department->phone}
" ."Email: email}\">{$department->email}" ."", ]; @endphp @foreach($sections as $title => $body) @php $id = Str::slug($title); @endphp
@endforeach
- '.implode('
- ',$department->leaders->pluck('full_name')->all()).'
No staff yet.
'), 'Announcements' => ($department->posts->isNotEmpty() ? 'Title | Date |
---|---|
{$p->title} | {$p->created_at->format('d M Y')} |
No announcements.
'), 'Sponsors & Partners'=> nl2br(e($department->sponsors_partners)), 'Location & Contacts'=> "" .nl2br(e($department->address))."" ."Phone: {$department->phone}
" ."Email: email}\">{$department->email}" ."", ]; @endphp @foreach($sections as $title => $body) @php $id = Str::slug($title); @endphp
{!! $body !!}