@extends('admin.layouts.index') @section('content')
@if ($errors->any())| # | ID | Post User | Category | Title | Post Date | View/Like | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ $key+1 }} | {{ $post->id }} | {{ $post->user->name }} | {{ $post->category->name }} | {{ $post->title }} | {{date('d-m-Y - h:A',strtotime( $post->created_at)) }} | {{ $post->view_count }} {{ $post->likedUsers->count() }}{{-- --}} |
@if($post->status == 1) Published @else Draft @endif | @if($post->status == 1) @else @endif {{-- --}} |