@extends('member.layouts.app') @section('title', 'Prayer Requests') @section('subtitle', 'Join our church family in prayer and submit your own requests') @section('content')

Prayer Line

"Therefore confess your sins to each other and pray for each other so that you may be healed. The prayer of a righteous person is powerful and effective." - James 5:16

@if($prayerRequests->count() > 0)
@foreach($prayerRequests as $request)
@if($request->urgency === 'urgent') @elseif($request->urgency === 'high') @elseif($request->urgency === 'medium') @else @endif {{ ucfirst($request->urgency) }} {{ $request->created_at->diffForHumans() }}
{{ $request->category_display }}

{{ $request->title }}

{{ Str::limit($request->description, 120) }}

{{ $request->total_prayers }} {{ Str::plural('prayer', $request->total_prayers) }}
@if($request->expires_at)
{{ $request->days_remaining }} days left
@endif
@if(!$request->is_anonymous && $request->member->photo_path) {{ $request->member->full_name }} @else @endif

{{ $request->is_anonymous ? 'Anonymous' : $request->member->full_name }}

@if(!$request->is_anonymous)

{{ $request->member->chapter ?? 'ACCRA' }} Chapter

@endif
Pray Now
@if($request->status === 'answered') Answered @else Active @endif @if($request->is_private) Private @endif
@endforeach
@if($prayerRequests->hasPages())
{{ $prayerRequests->links() }}
@endif @else

No Prayer Requests Found

@if(request()->hasAny(['search', 'category', 'urgency'])) No prayer requests match your search criteria. Try adjusting your filters. @else Be the first to submit a prayer request and let our church family pray with you. @endif

Submit Your First Request @if(request()->hasAny(['search', 'category', 'urgency']))
Clear Filters
@endif
@endif
@endsection