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

{{ $post->title }}

Post Management

  • Title: {{ $post['title'] ?? 'N/A' }}
  • Description: {{ $post['description'] ?? 'N/A' }}
  • Uploaded by: {{ $post['uploaded_by'] ?? 'N/A' }}
{{-- {{dd($post['media'])}} --}}
    @if (!empty($post['media'])) @foreach ($post['media'] as $media)
  • {{-- Media Type: {{ $media['media_type'] }} --}}
    @if ($media['media_type'] == 'video') @elseif ($media['media_type'] == 'audio') @elseif ($media['media_type'] == 'doc') Document: {{ basename($media['media_link']) }} @if (str_contains($media['media_link'], '.pdf')) @endif @else Download File @endif
  • @endforeach @else
  • No media available for this post.
  • @endif
@endsection