@extends('Dashboard.layouts.master') @section('title','Posts | List') @section('css') @endsection @section('content')
@if(count($posts) == 0) @endif @foreach ($posts as $key => $post) @endforeach
title Status Public/Private Added by Tags Type Phase Comments Reactions upload status Created at Actions
No data Found
{{ $post->title ?? 'title not found' }}
{{ $post->status == 1 ? __('forms.enabled') : __('forms.disabled') }}
{{ $post->is_public == 1 ? 'Public' : 'Private' }}
{{ $post?->user?->name }} @php $tags = ''; foreach ($post->tags as $key => $tag) { $tags .= $tag?->tag->title . (($key != count($post->tags) - 1) ? ', ' : ''); } echo !empty($tags) ? $tags : '----'; @endphp {{ $post?->type }} {{$post?->phase?->title ?? '----'}} {{$post?->comments->count()}} Show {{$post?->reactions->count()}} {{ $post?->type == 'video' ? (($post?->media_id == null && $post?->type == 'video') ? 'uploading' : 'done') : 'not video' }} {{ Helper::change_timezone($post->added_at) }}
Action
@endsection @section('scripts') @endsection