@extends('admin.layouts.masterlayout') @section('title') View Post @endsection @section('head_title') Post Management @endsection @section('content')

Post Details

Post List / Post Details

Media

@forelse ($post->files as $index => $media) @empty

No media attached to this post.

@endforelse

Post Information

Post Title:

{{ $post->title ?? '-' }}

Category:

{{ $post->category->name ?? '-' }}

Caption:

{{ $post->caption ?? '-' }}

Address:

{{ $post->address ?? '-' }}

Visibility:

{{ $post->visibility ? 'Visible' : 'Hidden' }}

Is Discover Post:

{{ $post->is_discover ? 'Yes' : 'No' }}

Owner Name:

{{ $post->user->name ?? '-' }}

Added By:

@php $types = [0 => 'Admin', 1 => 'Shop', 2 => 'Artist', 3 => 'Customer']; $addedBy = $types[$post->added_by] ?? 'Unknown'; @endphp

{{ $addedBy }}

Created Date:

{{ \Carbon\Carbon::parse($post->created_at)->format('d M Y') }}

Tagged Users:

@if ($post->tags->count())
    @foreach ($post->tags as $tag) @if ($tag->taggedUser)
  • Name : {{ $tag->taggedUser->name }} | Email : {{ $tag->taggedUser->email }}
  • @endif @endforeach
@else

No tagged users.

@endif

Status:

@php $statusClass = $post->status === 'publish' ? 'active' : 'inactive'; @endphp
{{ ucfirst($post->status) }}

Likes :

{{ $post->likes_count ?? '0' }}

Comments :

{{ $post->comments_count ?? '0' }}

Post Comments

@endsection @section('script') @endsection