Tipo de Sessão: {!! $meeting->SessionType->name !!}
Sessão Nº: {!! $meeting->number !!}
Data: {!! $meeting->date_start !!}
@php
$type = $type ?? 'ata';
$signer = \App\Models\SignatureSigners::where('id_document', $meeting->id)
->where('document_type', '!=', 'pauta')
->first();
$checkStatus = null;
if ($signer) {
$checkStatus = $signer->status === 'SIGNED' ? 'SIGNED' : 'PENDING';
}
@endphp
@if ($checkStatus === 'PENDING')
Aguardando assinaturas
@elseif($checkStatus === 'SIGNED')
Documento assinado
Download
@else
@endif