@extends('layouts.app') @section('title', $reuniao->titulo) @section('content') @if(session('success')) @endif

{{ $reuniao->titulo }}

Detalhes da reunião

@php $statusClass = match($reuniao->status) { 'concluida' => 'bg-success', 'confirmada' => 'bg-primary', 'em_andamento' => 'bg-warning', 'agendada' => 'bg-secondary', 'cancelada' => 'bg-danger', default => 'bg-secondary' }; $statusLabel = match($reuniao->status) { 'concluida' => 'Concluída', 'confirmada' => 'Confirmada', 'em_andamento' => 'Em Andamento', 'agendada' => 'Agendada', 'cancelada' => 'Cancelada', default => ucfirst($reuniao->status) }; @endphp {{ $statusLabel }}

{{ ucfirst($reuniao->tipo) }}

{{ $reuniao->organizador?->name ?? 'Não definido' }}

{{ $reuniao->data_hora->format('d/m/Y - H:i') }}

{{ $reuniao->local ?? 'Não definido' }}

@if($reuniao->descricao)

{{ $reuniao->descricao }}

@endif

Participantes ({{ $reuniao->participantes->count() }})

@if($reuniao->participantes->count() > 0 && in_array($reuniao->status, ['agendada', 'confirmada'])) @endif
@forelse($reuniao->participantes as $participante)
{{ $participante->user?->name ?? 'Usuário removido' }} {{ $participante->user?->email ?? 'N/A' }}
@if($participante->confirmado) Confirmado @else Pendente @endif @if($participante->presente) Presente @endif @if($participante->user) @else Usuário removido @endif
@empty

Nenhum participante adicionado

@endforelse

Atas ({{ $reuniao->atas->count() }})

Criar Ata
@if($reuniao->atas->count() > 0) @foreach($reuniao->atas as $ata)
Ata #{{ $ata->numero ?? $ata->id }} {{ $ata->aprovada ? 'Aprovada' : 'Pendente de aprovação' }} - {{ $ata->created_at->format('d/m/Y') }}
Visualizar
@endforeach @else

Nenhuma ata criada ainda.

@endif

Lembretes Configurados ({{ $reuniao->lembretes->count() }})

@if($reuniao->lembretes->count() > 0) @foreach($reuniao->lembretes as $lembrete)
{{ $lembrete->tipo_label }} @if($lembrete->enviado) Enviado em {{ $lembrete->data_envio->format('d/m/Y H:i') }} @else Pendente de envio @endif
@endforeach @else

Nenhum lembrete configurado. Clique em "Definir Lembretes" para configurar.

@endif

Decisões Tomadas ({{ $reuniao->decisoes->count() }})

Nova Decisão
@if($reuniao->decisoes->count() > 0) @foreach($reuniao->decisoes as $decisao)
{{ $decisao->titulo }} Status: {{ ucfirst($decisao->status) }} @if($decisao->prazo) - Prazo: {{ $decisao->prazo->format('d/m/Y') }} @endif @if($decisao->responsavel) - Responsável: {{ $decisao->responsavel->name }} @endif @if($decisao->descricao) {{ Str::limit($decisao->descricao, 100) }} @endif
@endforeach @else

Nenhuma decisão registrada ainda.

@endif
@push('scripts') @endpush @endsection