@extends('layouts.app') @section('content')
Post @include('component.breadcrumb', ['items' => ['Web', 'Post', 'All Posts']])
@include('component.flash')
@foreach($posts as $post) @endforeach
Title Category Date Tags Attributes Status Translations Actions
{{$post->{"title:".fallback_locale()} }} @foreach($post->categories as $category) {{$category->{"name:".fallback_locale()} }} @endforeach {{$post->date->format('d/m/Y')}} @foreach($post->tagArray as $tag) {{$tag}} @endforeach @if ($post->sticky) Sticky @endif @if ($post->status == 'public') public @else private @endif
@foreach(locales_except_fallback() as $code => $properties) @if ($post->hasTranslation($code)) @endif @endforeach @if ($post->hasUntranslatedLocale()) @endif
{{ csrf_field() }} {{ method_field('DELETE') }} @include('component.sweetalert-delete', ['button' => '.btn-delete-'.$post->id, 'form' => '.form-delete-'.$post->id, 'text' => 'This item '.$post->title.' will be permanently deleted'])
@stop @push('script') @endpush