@if ($document->owner)
{!! $document->owner->short_name !!}
@else
@endif
@php
$inPauta = \App\Models\MeetingPauta::where('document_id', $document->id)->exists();
$pautaStatus = $document->getPautaStatus();
@endphp
@if (!$inPauta)
@shield('document.read')
Lido:
read ? 'checked' : '' }}>
@endshield
@shield('document.approved')
Aprovado:
approved ? 'checked' : '' }}>
@endshield
@else
{{ $pautaStatus['label'] }}
@endif
Scanner
Número:
@if ($document->number === 0)
-
@elseif($document->number !== 0)
@if (Auth::user()->roleHasPermission('document.editnumero'))
{!! $document->number !!}{!! '/' . $document->getYear($document->date) !!}
@else
{!! $document->number . '/' . $document->getYear($document->date) !!}
@endif
@else
@if (Auth::user()->roleHasPermission('document.editnumero'))
{!! $document->number !!}{!! '/' . $document->getYear($document->date) !!}
@endif
@endif
Protocolo:
@if (!$document->document_protocol && !Auth::user()->roleHasPermission('document.createProtocolNumber'))
@elseif (!$document->document_protocol && Auth::user()->roleHasPermission('document.createProtocolNumber'))
@else
@if (Auth::user()->roleHasPermission('document.editprotocol'))
@if ($document->document_protocol)
{{ $document->document_protocol->number }}
@endif
@else
@if ($document->document_protocol)
{{ $document->document_protocol->number }}
@endif
@endif
@endif
{{--
Nº Processo:
@if ($document->nr_process_ano)
{!! str_replace(['\\', '[', ']', '"'], '', $document->nr_process_ano) !!}
@else
@endif
--}}
@if (!isset($document->location_name))
Geolocalização:
{{ $document->location_name ?? 'Não informada Geolocalização adicione uma nova localização' }}
@endif
Data Tram:
@if (count($document->processingDocument) === 0)
@else
{!! $document->processingDocument->first()->processing_document_date !!}
@endif
@php
if (count($document->processingDocument) === 0) {
$status = 'Em elaboração';
$class = 'badge-elaboracao';
} else {
$statusName = '';
$status = $statusName . ($document->document_protocol ? 'Protocolado' : 'Em elaboração');
switch ($statusName) {
case 'Aprovado':
$class = 'badge-aprovado';
break;
case 'Rejeitado':
$class = 'badge-rejeitado';
break;
default:
$class = $document->document_protocol ? 'badge-protocolado' : 'badge-aberto';
}
}
$pendingSigners = $document->pendingSigners()->get();
$signedSigners = $document->signedSigners()->get();
@endphp
Status:
{{ $status }}
Destinatário:
@if (count($document->processingDocument) === 0)
Não possui tramitação
@else
@if (isset($destination->id))
{!! \App\Models\Destination::where('id', $document->processingDocument->first()->destination->id)->pluck('name')->first() !!}
@else
Destinatário ainda não foi informado!
@endif
@endif
@php
$url = request()->getHost();
@endphp
@if ($url != 'caracol.legissuper.com.br' && $url != 'caracol.localhost:8000')
Assinaturas:
@if ($pendingSigners->isNotEmpty())
{{ $pendingSigners->count() }} assinatura(s) pendente(s)
@elseif($signedSigners->isNotEmpty())
Documento assinado
@elseif($signedSigners->isEmpty())
Não possui solicitação de assinatura
@endif
@else
Assinaturas:
Assinatura desabilitada
@endif