@extends('layouts.digitar') @section('Breadcrumbs') {!! Breadcrumbs::render('lawsProjects.list') !!} @endsection @section('content') @if (!empty($signatures) && $count_status == $signatures->total_signatures_into_document)

Assinaturas finalizadas para esse projeto de lei

@else @php $hasModuleSet = \App\Models\ProcessingDocumentsSignature::where('id_document', $lawsProjects->id) ->whereNotNull('module') ->exists(); @endphp @if ($hasModuleSet)
@php $checkStatus = \App\Models\SignedDocuments::where( 'id_document', $lawsProjects->id, )->exists() ? 'PENDING' : null; @endphp @if ($checkStatus === null)

Ações Disponíveis

@elseif ($checkStatus === 'PENDING')

Atenção: Este projeto de lei já possui um pedido de assinatura em andamento.

@elseif ($checkStatus === 'SIGNED')

Este projeto de lei já foi assinado.

@endif
@else
@csrf
@endif @endif @endsection