@extends('layouts.apps')
@section('title', 'Bishop - Africa Inland Church Tanzania(AICT)')
@section('title', 'Bishops & Archbishops')
@section('content')
Bishops & Archbishops
{{-- Choose a Bishop --}}
{{-- Rendered Bishop Card --}}
@php
function bishopCard($b, $label) {
$imgPath = asset('storage/' . $b->photo);
$route = route('frontend.bishop-profile', $b->id);
return '
' . $label . '
' . e($b->full_name) . '
' . e($b->diocese->name) . ' Diocese
Read more
';
}
@endphp
{{-- Archbishops --}}
Archbishops
@forelse($archbishops as $b)
{!! bishopCard($b, 'Archbishop') !!}
@empty
No archbishops found.
@endforelse
{{-- Divider --}}
{{-- Active Bishops --}}
Active Bishops
@forelse($active as $b)
{!! bishopCard($b, 'Bishop') !!}
@empty
No active bishops.
@endforelse
{{-- Retired --}}
Retired
@forelse($retired as $b)
{!! bishopCard($b, 'Retired Bishop') !!}
@empty
No retired bishops.
@endforelse
{{-- Passed Away --}}
Passed Away
@forelse($passed as $b)
{!! bishopCard($b, 'Late Bishop') !!}
@empty
No passed away bishops.
@endforelse
@endsection