@extends('layouts.mastershow') @section('content')
@auth @can('moderator-post', $post)
@lang('messages.loged') {{ auth()->user()->role }}. @isset($editby) @lang('messages.editby') {{ $editby->username }} - {{ $post->updated_at->diffForHumans() }} @endisset
@elsecan('own-post', $post)
{{ $post->user->name }} @lang('messages.yourpost') @isset($editby) @lang('messages.editby') {{ $editby->username }} - {{ $post->updated_at->diffForHumans() }} @endisset
@endcan @endauth
@if (!empty($post->post_video))
@elseif(!empty($post->post_media)) {{ $post->media_alt }} @endif
{{ $post->user->name }} {{ $post->created_at->diffForHumans() }}
{{ $post->user->username }} @isset($post->user->role) @endisset @if (count($post->tags)) @foreach ($post->tags as $tag) #{{ $tag->name }} @endforeach @endif

{{ $post->post_title }}

@if (!empty($post->post_desc))

{{ $post->post_desc }}

@endif @if (!empty($setting->post_ads))

{!! $setting->post_ads !!}

@endif @if($post->contents) @foreach ($post->contents as $content) @if ($content->type == "header") @if (!empty($content->extra)) <{{ $content->extra }}>{{ $content->body }}extra }}> @else

{{ $content->body }}

@endif @endif @if ($content->type == "text")

{{ $content->body }}

@endif @if ($content->type == "txteditor") {!! clean( $content->body ) !!} @endif @if ($content->type == "image") @if (!empty($content->link)) {{ $content->extra }} @else {{ $content->extra }} @endif @endif @if ($content->type == "youtube")
@endif @if ($content->type == "tweet")
{!! $content->embed->embedcode !!}
@endif @if ($content->type == "facebook")
@endif @if ($content->type == "instagram")
{!! $content->embed->embedcode !!}
@endif @if ($content->type == "pinterest")
@endif @if ($content->type == "tiktok")
{!! $content->embed->embedcode !!}
@endif @endforeach @endif
@if (auth()->check()) @if ($post->isLiked)
@else
@endif @else @endif
{{ shortNumber($post->likes()->count()) }}
{{ shortNumber($post->counter) }}
@if ($setting->allow_comments == '0') @endif
@if($previous) @endif
@if($random) @endif
@if($next) @endif
@if (!empty($setting->page_ads))
{!! $setting->page_ads !!}
@endif @forelse($related as $relatedpost) @include('public.relatedpost') @empty
@lang('messages.norelated')
@endforelse
@endsection @section('extra') @endsection