@extends('front.layouts.front') @section('content') @php $article_categories = $post->taxonomies->where('hierarchical', 1)->map(function($item) { return ['slug' => $item->slug, 'title' => $item->title]; }); $categories_map = $article_categories->map(function($item) { return $item['title']; }); @endphp {{--
--}}{{ date('F d, Y', strtotime($post->created_at)) }}
@foreach($article_categories as $category) {{ $category['title'] }}@if($loop->remaining),@endif @endforeach