@extends('impressoes.layout1.content') @section('conteudo')
Filtros
Unidade:
Local de atendimento:
{{ $unidade }}
{{ $infraestrutura }}
Setor:
Material:
{{ $setor }}
{{ $material }}
Paciente:
{{ $paciente }}
@foreach ($colunas as $coluna) @endforeach @foreach ($itens as $key => $item) @php $rowClass = $key % 2 === 0 ? 'row-even' : 'row-odd'; $rowspanPaciente = 0; $item->materiais->each(function ($material) use (&$rowspanPaciente) { $rowspanPaciente += $material->retiradas->count(); }); @endphp @foreach ($item->materiais as $i => $material) @if ($i == 0) @if(!is_null($colunas->where('key', 'paciente_prontuario')->first())) @endif @if(!is_null($colunas->where('key', 'paciente_prontuario_unidade')->first())) @endif @endif @foreach ($material->retiradas as $j => $retirada) @if ($j > 0) @endif @endforeach @endforeach @endforeach
{{ $coluna['label'] }}
{{ $item->paciente_nome }}{{ $item->paciente_prontuario }}{{ $item->paciente_prontuario_unidade ?? '-' }}{{ $material->data_primeira_retirada }} {{ $material->material_descricao }} {{ $material->retiradas[0] }}
{{ $retirada }}
@endsection