@extends('layouts.meeting') @section('content-meeting') @php $assemblymanForPresence = $assemblyman->filter(function ($item) { $responsibilityName = optional(optional($item->currentResponsibility)->responsibility)->name; return (int) $item->voting_active === 1 || $responsibilityName === 'Presidente'; }); $presentAssemblymanForPresence = $meeting->assemblyman()->get()->filter(function ($item) { $responsibilityName = optional(optional($item->currentResponsibility)->responsibility)->name; return (int) $item->voting_active === 1 || $responsibilityName === 'Presidente'; }); @endphp

PAINÉIS DIGITAIS

DOCUMENTOS


{{ $meeting->meeting_pauta()->where('document_id', '!=', 'null')->count() }}


PROJETO DE LEI


{{ $meeting->meeting_pauta()->where('law_id', '!=', 'null')->count() }}


PRESENÇA

TOTAL DE VEREADORES - {{ $assemblymanForPresence->count() }}

PRESENTE - {{ $presentAssemblymanForPresence->count() }}

AUSENTES {{ $assemblymanForPresence->count() - $presentAssemblymanForPresence->count() }}

GERAR PDF
@endsection