@extends('backend.layouts.layout') @section('content')

Pastor Management

@if ($congregationCodes->isEmpty())
Warning! No available congregation codes. Please create one before adding pastors.
@endif
Pastors List
@php $responsiveClass = count($pastors) > 3 ? 'table-scrollable' : 'table-not-scrollable'; @endphp
@foreach ($pastors as $pastor) @endforeach
# Name Email Location Congregation Code Created At Actions
{{ $loop->iteration }} {{ $pastor->name }} {{ $pastor->email }} {{ $pastor->location }} {{ $pastor->congregationCode->congregation_code ?? 'N/A' }} {{ $pastor->created_at->format('Y-m-d') }}
@endsection @push('scripts') @endpush