<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<section class="content-header">
    <h1><i class="fa fa-newspaper-o"></i> Publicação PJe</h1>
    <ol class="breadcrumb">
        <li><a href="<?php echo site_url('admin/diario_oficial')?>">Diário Oficial</a></li>
        <li class="active">Publicação</li>
    </ol>
</section>
<section class="content">
<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title"><?php echo htmlspecialchars($publicacao->titulo??'Publicação')?></h3>
        <div class="box-tools pull-right">
            <button onclick="window.print()" class="btn btn-default btn-sm"><i class="fa fa-print"></i> Imprimir</button>
            <a href="<?php echo site_url('admin/diario_oficial')?>" class="btn btn-default btn-sm"><i class="fa fa-arrow-left"></i> Voltar</a>
        </div>
    </div>
    <div class="box-body">
        <div class="row" style="margin-bottom:15px">
            <div class="col-md-3"><strong>Processo:</strong><br><?php echo htmlspecialchars($publicacao->numero_processo??'-')?></div>
            <div class="col-md-3"><strong>Tribunal:</strong><br><?php echo htmlspecialchars($publicacao->tribunal??'-')?></div>
            <div class="col-md-3"><strong>Data:</strong><br><?php echo date('d/m/Y H:i',strtotime($publicacao->data_publicacao))?></div>
            <div class="col-md-3"><strong>ID:</strong><br><small><?php echo htmlspecialchars($publicacao->comunicacao_id??'-')?></small></div>
        </div>
        <hr>
        <pre style="background:#f9f9f9;padding:20px;border-radius:4px;white-space:pre-wrap;font-family:inherit;font-size:13px;border:1px solid #ddd"><?php echo htmlspecialchars($publicacao->conteudo??'Sem conteúdo')?></pre>
    </div>
</div>
</section>
<style>@media print{.sidebar,.main-header,.content-header ol,.box-tools{display:none!important}.content-wrapper{margin:0!important}}</style>
