@extends('layouts.app') @section('title', 'Detalhes do Post') @section('content')

{{ $post->title }}

@if(auth()->user()->hasPermission('posts.edit')) Editar @endif
Status de Publicação
{{ round($post->publishedPercentage()) }}%

{{ round($post->publishedPercentage()) }}%

Concluído


Status por Rede Social:
@foreach($post->tasks as $task)
{{ $task->socialNetwork->name }}
@if($task->check) Publicado @else Pendente @endif
@endforeach
Informações do Post
{{ $post->status_label }}
{{ $post->scheduled_at->format('d/m/Y H:i') }} ({{ $post->scheduled_at->diffForHumans() }})
@if($post->content)

{!! nl2br(e($post->content)) !!}

@endif @if($post->hashtags)

{{ $post->hashtags }}

@endif @if($post->notes)

{!! nl2br(e($post->notes)) !!}

@endif
Tarefas por Rede Social
@foreach($post->tasks as $task)
{{ $task->socialNetwork->name }} {{ $task->status_label }}

{{ $task->copywriter?->name ?? 'Não atribuído' }}

{{ $task->designer?->name ?? 'Não atribuído' }}

{{ $task->publisher?->name ?? 'Não atribuído' }}

@if($task->check)
Publicado por {{ $task->check->checker->name }} em {{ $task->check->published_at->format('d/m/Y H:i') }} @if(!$task->check->on_time) {{ $task->check->getTimingLabel() }} ({{ $task->check->getTimingDifference() }}) @endif
@if($task->check->post_url) Ver post @endif
@elseif(auth()->user()->hasPermission('posts.check')) @endif
@endforeach
Informações Adicionais

Criado por:
{{ $post->creator->name }}

Criado em:
{{ $post->created_at->format('d/m/Y H:i') }}

Última atualização:
{{ $post->updated_at->format('d/m/Y H:i') }}

@foreach($post->tasks as $task) @if(!$task->check) @endif @endforeach @endsection