@extends('layouts.admin') @section('content')

Post Details

Post Information
Post ID {{ $post->post_id }}
Description
{!! $post->description !!}
Created By {{ $post->user->name ?? 'Unknown' }}
Post Type {{ $post->postType->name ?? 'Unknown' }}
Created At {{ $post->created_at->format('d M Y, H:i A') }}
Updated At {{ $post->updated_at->format('d M Y, H:i A') }}
@if($post->files) @php $images = $post->files; @endphp @if(!empty($images))
Post Images
@foreach($images as $image)
@if(in_array($image->extension,['mp4','avi','3gp']))
@else Post Image @endif
@endforeach
@endif @endif @if($post->poll_question || $post->poll_options)
Poll Information
Question: {{ $post->poll_question ?? 'N/A' }}
@if($post->poll_options) @php $pollOptions = json_decode($post->poll_options); @endphp
    @foreach($pollOptions as $option)
  • {{ $option }}
  • @endforeach
@else

No Poll Options

@endif
@endif
Back to Posts
@endsection @section('script') @endsection