@extends('layouts.app') @section('content')

{{$datos['title']}}

{{$datos['newPost']}} @if(Request::path() == "posts" || Request::path() == "english-posts" || Request::path() == "spanish-posts" ) {{$datos['button1']}} {{$datos['button2']}}
@if(Request::path() == "spanish-posts") {{$datos['trash']}} @elseif(Request::path() == "english-posts") {{$datos['trash']}} @else {{$datos['trash']}} @endif @elseif(Request::path() == "trash-posts" || Request::path() == "trash-spanish" || Request::path() == "trash-english" )
@if(Request::path() == "trash-spanish") {{$datos['active']}} @elseif(Request::path() == "trash-english") {{$datos['active']}} @else {{$datos['active']}} @endif @endif

@foreach($posts as $post) @endforeach
# Image Title Preview Outstanding Status Languaje Category Writter Actions
{{ $post->id }} {{ $post->title }} {{ $post->preview }} {{ ($post->outstanding) ? "Yes" : "No" }} {{ ($post->active) ? "Active" : "Inactive" }} {{ ($post->english) ? "English" : "Spanish" }} {{ $post->category->name }} {{ $post->area->name }} @if(Request::path() == "posts" || Request::path() == "english-posts" || Request::path() == "spanish-posts")
@csrf @method('DELETE')
@else
@csrf @method('PUT')
@csrf @method('DELETE')
@endif
@endsection