Files
compras/resources/views/purchases/opening.blade.php
T

48 lines
4.7 KiB
PHP

<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Acta de abertura · {{ $opening->reference }} · SGC</title>
<style>
@page { size: A4; margin: 17mm; }
* { box-sizing: border-box; }
body { margin: 24px auto; max-width: 960px; color: #111; font: 12px/1.5 Arial, sans-serif; }
header { border-bottom: 3px solid #ed1c24; padding-bottom: 12px; }
h1 { font-size: 22px; margin-bottom: 4px; } h2 { font-size: 15px; margin-top: 24px; }
p, td, th { overflow-wrap: anywhere; } .pre { white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { border: 1px solid #ccc; padding: 8px; text-align: left; vertical-align: top; }
th { background: #f2f2f2; } thead { display: table-header-group; } tr { break-inside: avoid; }
.notice { border: 1px solid #aaa; padding: 10px; margin-top: 16px; } .small { color: #444; font-size: 10px; }
.signature { min-width: 120px; padding-top: 28px; } footer { border-top: 1px solid #ddd; margin-top: 28px; padding-top: 12px; }
button { padding: 10px 18px; } @media print { body { margin: 0; max-width: none; } .no-print { display: none; } }
</style>
</head>
<body>
<button type="button" class="no-print" onclick="window.print()">Imprimir acta</button>
<header><strong>SGC · Sistema de Gestão de Compras</strong><p>{{ $snapshot['company']['name'] }}</p></header>
<h1>Acta de sessão de abertura de propostas</h1>
<p><strong>{{ $opening->reference }}</strong> · Versão {{ $opening->revision }} · {{ $snapshot['requisition']['number'] }}</p>
<p class="pre">Objecto: {{ $snapshot['requisition']['justification'] }}</p>
<p>Data e hora declaradas da sessão: {{ \Carbon\CarbonImmutable::parse($opening->opened_at, 'UTC')->timezone($opening->timezone)->format('d/m/Y H:i') }}<br>Fuso horário: {{ $opening->timezone }}<br>Local: {{ $opening->location }}</p>
@if($opening->submission_deadline)<p>Limite declarado para apresentação: {{ \Carbon\CarbonImmutable::parse($opening->submission_deadline, 'UTC')->timezone($opening->timezone)->format('d/m/Y H:i') }}</p>@endif
<div class="notice">Registo documental para conferência e assinatura. Os nomes são declarados; o SGC não valida assinaturas nem certifica a realização da sessão. Esta acta não constitui avaliação, recomendação, adjudicação ou autorização financeira.</div>
<h2>Intervenientes declarados</h2>
<table><thead><tr><th>Nome</th><th>Qualidade</th><th>Participação</th><th>Assinatura manuscrita</th></tr></thead><tbody>
@foreach($opening->participants as $participant)<tr><td>{{ $participant['name'] }}</td><td>{{ $participant['capacity'] }}</td><td>{{ $participant['group'] === 'jury' ? 'Júri' : 'Participante' }}</td><td class="signature">____________________</td></tr>@endforeach
</tbody></table>
<h2>Mapa das propostas registadas na aplicação</h2>
<p>Valores preservados à data deste registo, para conferência com os dados da sessão. Não inclui propostas adicionadas ou alteradas posteriormente.</p>
<table><thead><tr><th>Ordem</th><th>Concorrente e referência</th><th>Sem IVA</th><th>IVA</th><th>Total</th></tr></thead><tbody>
@foreach($snapshot['proposals'] as $index => $proposal)<tr><td>{{ $index + 1 }}</td><td>{{ $proposal['supplier']['name'] ?? 'Fornecedor indisponível' }}<br>{{ $proposal['reference'] }}</td><td>{{ number_format($proposal['subtotal_minor'] / 100, 2, ',', '.') }} {{ $proposal['currency'] }}</td><td>{{ number_format($proposal['tax_minor'] / 100, 2, ',', '.') }} {{ $proposal['currency'] }}</td><td>{{ number_format($proposal['total_minor'] / 100, 2, ',', '.') }} {{ $proposal['currency'] }}</td></tr>@endforeach
</tbody></table>
<h2>Observações</h2><p class="pre">{{ $opening->notes ?: 'Sem observações registadas.' }}</p>
<h2>Referências de anexos</h2>
@if(count($opening->annexes))<ul>@foreach($opening->annexes as $annex)<li>{{ $annex }}</li>@endforeach</ul>@else<p>Sem referências de anexos registadas.</p>@endif
<p class="small">As referências acima não significam que os ficheiros ou assinaturas foram carregados ou verificados no SGC.</p>
<h2>Fundamento do registo desta versão</h2><p class="pre">{{ $opening->reason }}</p>
<footer class="small">Registado por {{ $snapshot['author']['name'] }} em {{ \Carbon\CarbonImmutable::parse($opening->created_at, 'UTC')->timezone($opening->timezone)->format('d/m/Y H:i') }} · {{ $opening->timezone }}.<br>SGC · Sistema de Gestão de Compras · Documento do processo {{ $snapshot['requisition']['number'] }}.</footer>
</body>
</html>