@extends('layouts.app') @section('content')
{{-- Header with “Add Pastor” --}}

All Pastors

+ Add Pastor
{{-- Pastors Table --}}
@foreach($pastors as $pastor) @endforeach
Full Names DOB Start Date Church Position Action
{{ $pastor->full_name }} {{ \Carbon\Carbon::parse($pastor->dob)->format('d/m/Y') }} {{ $pastor->start_date ? \Carbon\Carbon::parse($pastor->start_date)->format('d/m/Y') : '--' }} {{ $pastor->church->name ?? '--' }} {{ $pastor->position }} {{-- Remove --}}
@csrf @method('DELETE')
{{-- Edit --}} Edit {{-- Photos --}} Photos
{{-- Pagination --}}
{{ $pastors->links() }}
@endsection