@extends('admin.master.master') @section('content') Editar Post Dashboard Posts Novo Post @csrf @method('PUT') Título: URL: Destaque: Selecione highlight == 1 ? 'selected' : '') }}> Destaque principal highlight == 3 ? 'selected' : '') }}> Lista geral Imagem: Subtitulo: Conteúdo: {{ old('content') ?? $post->content }} Vídeo: (URL Youtube) Fonte: Arquivo:(DOC, PDF, TXT) @if($post->file) Abrir arquivo @endif Galeria: (as imagens aparecerão na ordem que foram enviadas) @foreach($post->images()->get() as $image) @endforeach Crédito da Imagem: Categoria: Selecione @if(!empty($categories)) @foreach($categories as $category) id || ($post->category == $category->id && $post->subcategory == null) ? 'selected' : '') }}>{{ $category->title }} @foreach($category->subcategory()->get() as $subcategory) id || $post->subcategory == $subcategory->id ? 'selected' : '') }}> >> {{ $subcategory->title }} @endforeach @endforeach @endif Autor: Selecione @if(!empty($authors)) @foreach($authors as $author) id || auth()->user()->name == $author->name || $post->author == $author->id ? 'selected' : '') }}>{{ $author->name }} @endforeach @endif Dia: {{ ($post->status == true ? 'Publicado' : 'Rascunho') }} status == true ? 'checked' . ' class=active' : 'class=inactive') }}> Redes social == true ? 'checked' . ' class=active' : 'class=inactive') }}> Salvar Alterações @endsection @section('js') @endsection