@extends('layouts.admin.layout') @section('content')
โ† Prayer Board

Prayer Detail

{{ $prayer->status_label }}
{{-- Main column --}}
{{-- Prayer card --}}
{{ strtoupper(substr($prayer->submitter_name, 0, 1)) }}
{{ $prayer->submitter_name }}
@if($prayer->user && $prayer->user->email)
{{ $prayer->user->email }}
@endif
Submitted {{ $prayer->created_at->format('M j, Y g:ia') }}
@if($prayer->category) {{ $prayer->category->emoji }} {{ $prayer->category->name }} @endif

Prayer Text

{{ $prayer->text }}

@if($prayer->original_text && $prayer->original_text !== $prayer->text)

Original submission (before admin edit)

{{ $prayer->original_text }}

@endif @if($prayer->answer_testimony)

๐Ÿ“– Testimony

"{{ $prayer->answer_testimony }}"

@endif @if($prayer->rejection_reason)

โŒ Rejection Reason

{{ $prayer->rejection_reason }}

@endif
{{-- Participant counts --}} @if($prayer->status !== 'PENDING' && $prayer->status !== 'REJECTED')

๐Ÿ™ Intercession Summary

Members

{{ $prayer->member_count }}

Guests

{{ $prayer->guest_count }}

Anonymous

{{ $prayer->anonymous_count }}

{{ $prayer->total_participant_count }} total people praying

@endif
{{-- Sidebar --}}
{{-- Timeline --}}

๐Ÿ“‹ Timeline

Submitted
{{ $prayer->created_at->format('M j, Y g:ia') }}
@if($prayer->approved_at)
Approved
{{ $prayer->approved_at->format('M j, Y g:ia') }}
@if($prayer->approver)
by {{ $prayer->approver->name }}
@endif
@endif @if($prayer->expires_at)
Expiry
{{ $prayer->expires_at->format('M j, Y') }} @if($prayer->status === 'ACTIVE') ({{ $prayer->days_remaining }} days left) @endif
@endif @if($prayer->answered_at)
Answered
{{ $prayer->answered_at->format('M j, Y g:ia') }}
@if($prayer->answerer)
by {{ $prayer->answerer->name }}
@endif
@endif @if($prayer->rejected_at)
Rejected
{{ $prayer->rejected_at->format('M j, Y g:ia') }}
@if($prayer->rejector)
by {{ $prayer->rejector->name }}
@endif
@endif @if($prayer->pinned_at)
Pinned
{{ $prayer->pinned_at->format('M j, Y') }}
@endif
{{-- Audit log --}}

๐Ÿ” Audit Log

@forelse($auditLogs as $log)

{{ $log->description }}

{{ $log->created_at->format('M j, Y g:ia') }} @if($log->causer) ยท {{ $log->causer->name }} @endif

@if($log->properties && count($log->properties))
@foreach($log->properties as $key => $val) @if(is_string($val) || is_numeric($val)) {{ $key }}: {{ $val }} @endif @endforeach
@endif
@empty

No audit entries yet.

@endforelse
@endsection