@extends('admin.layouts.home') @section('title', __('Post Details')) @section('content')

{{ __('Post Details') }}

{{ __('Back to Posts') }}
{{ ucfirst(str_replace('_', ' ', $post->post_type ?? 'post')) }} @if($post->is_anonymous) Anonymous @endif @if($post->tips_enabled) Tips Enabled @endif @if($post->comments_status === 0) Comments Disabled @endif
Author: {{ $post->user->name ?? $post->user->username ?? 'Unknown' }} {{ $post->created_at->format('M d, Y') }} {{ $post->created_at->format('H:i') }}
@if($post->post_text)
Post Content
{!! nl2br(e($post->post_text)) !!}
@endif @if($post->shared_text)
Shared Text
{!! nl2br(e($post->shared_text)) !!}
@endif @if($post->media->count() > 0)
Media Gallery
@if($post->media->where('image_or_video', 1)->count() > 0)
Images ({{ $post->media->where('image_or_video', 1)->count() }})
@foreach($post->media->where('image_or_video', 1) as $image)
Post Image
{{ $image->original_name ?? 'Image' }}
@endforeach
@endif @if($post->media->where('image_or_video', 2)->count() > 0)
Videos ({{ $post->media->where('image_or_video', 2)->count() }})
@foreach($post->media->where('image_or_video', 2) as $video)
{{ $video->original_name ?? 'Video' }}
@if($video->file_size) {{ number_format($video->file_size / 1024 / 1024, 2) }} MB @endif
@endforeach
@endif @if($post->media->where('image_or_video', 3)->count() > 0)
Audio Files ({{ $post->media->where('image_or_video', 3)->count() }})
@foreach($post->media->where('image_or_video', 3) as $audio)
{{ $audio->original_name ?? 'Audio File' }}
@if($audio->file_size) {{ number_format($audio->file_size / 1024 / 1024, 2) }} MB @endif
@endforeach
@endif @if($post->media->where('image_or_video', 4)->count() > 0)
Attachments ({{ $post->media->where('image_or_video', 4)->count() }})
@foreach($post->media->where('image_or_video', 4) as $attachment)
{{ $attachment->original_name ?? 'Attachment' }} @if($attachment->file_size) ({{ number_format($attachment->file_size / 1024, 2) }} KB) @endif
Download
@endforeach
@endif
@endif @if($post->gif_url)
GIF
{{ $post->gif_title ?? 'GIF' }} @if($post->gif_title)

{{ $post->gif_title }}

@endif
@endif @if($post->video_thumbnail_url || $post->video_thumbnail)
Video Thumbnail
Video Thumbnail
@endif @if(($post->youtube_urls ?? $post->youtube_links) || ($post->vimeo_urls ?? $post->vimeo_links))
External Videos
@if($post->youtube_urls ?? $post->youtube_links) @endif @if($post->vimeo_urls ?? $post->vimeo_links) @endif
@endif @if($post->post_type == 'poll' && $post->poll)
Poll
{{ $post->poll->title }}
@if($post->poll->options && $post->poll->options->count() > 0)
@foreach($post->poll->options as $option)
{{ $option->option_text }}
@endforeach
@endif
@endif @if($post->post_type == 'donation' && $post->fund)
Donation Details
@if($post->fund->donation_title)
{{ $post->fund->donation_title }}
@endif @if($post->fund->amount)
Amount: ${{ number_format($post->fund->amount, 2) }}
@endif @if($post->fund->description)

{{ $post->fund->description }}

@endif @if($post->fund->donation_image) Donation Image @endif
@endif @if($post->parentPost)
Original Post
User: {{ $post->parentPost->user->name ?? 'Unknown' }}
View Original
@if($post->parentPost->post_text)

{{ Str::limit($post->parentPost->post_text, 150) }}

@endif
@endif
Post Information
{{ $totalReactions ?? array_sum($reactionCounts) }}
Reactions
{{ $commentCount ?? 0 }}
Comments
{{ $shareCount ?? 0 }}
Shares

Post ID #{{ $post->id }}
Post Type @php $postType = $post->post_type ?? 'post'; $postTypeDisplay = ucfirst(str_replace('_', ' ', $postType)); @endphp {{ $postTypeDisplay }}
Privacy Level @php $privacyLevels = [ 1 => ['name' => 'Public', 'color' => 'success'], 2 => ['name' => 'Friends Only', 'color' => 'info'], 3 => ['name' => 'Private', 'color' => 'warning'], 4 => ['name' => 'Followers Only', 'color' => 'secondary'] ]; $privacyLevel = $post->privacy_level ?? 1; $privacy = $privacyLevels[$privacyLevel] ?? ['name' => 'Unknown', 'color' => 'secondary']; @endphp {{ $privacy['name'] }}
@if($post->page)
Page {{ $post->page->name ?? 'Unknown' }}
@endif @if($post->group)
Group {{ $post->group->name ?? 'Unknown' }}
@endif @if($post->location)
Location {{ $post->location }}
@endif @if($post->feeling)
Feeling {{ $post->feeling }}
@endif @if($post->background_color)
Background Color
{{ $post->background_color }}
@endif
Views {{ $post->views_count ?? 0 }}
@if($post->scheduled_at)
Scheduled At {{ $post->scheduled_at->format('M d, Y H:i') }}
@endif
Created {{ $post->created_at->format('M d, Y H:i') }}
Last Updated {{ $post->updated_at->format('M d, Y H:i') }}
@if($post->ip_address)
IP Address {{ $post->ip_address }}
@endif @if($post->taggedUsers && $post->taggedUsers->count() > 0)
Tagged Users ({{ $post->taggedUsers->count() }})
@foreach($post->taggedUsers as $user) {{ $user->name ?? $user->username }} @endforeach
@endif
Danger Zone

Deleting this post will permanently remove it and all associated data. This action cannot be undone.

@csrf @method('DELETE')
@endsection @section('scripts') @endsection @section('styles') @endsection