public function setFuncao($id) { $input = Input::all() + ['setor_id' => $id]; SetorFuncao::create($input); return Redirect::route('setors.funcao', $id); }
$fpdf->Ln(); $fpdf->SetFillColor(200); if (!empty($aso->postoTrabalho)) { $fpdf->SetFont('Arial', '', 7); $fpdf->MultiCell(190, 6, utf8_decode('Atividades: ' . implode(', ', $aso->postoTrabalho->atividades->lists('descricao'))), 'LTRB', 'L'); } $fpdf->SetFont('Arial', 'B', 10); $fpdf->Cell(190, 6, utf8_decode('Tipo de Exame Médico: ') . strtoupper($aso->tipo), 'TLRB', 0, 'C', 1); $fpdf->Ln(); $fpdf->SetFont('Arial', '', 9); if ($aso->tipo == 'mudanca de funcao') { $novo = DB::table('farmacia.asos')->where('id', $aso->id)->first(); $fpdf->Cell(0, 6, utf8_decode('NOVO POSTO DE TRABALHO'), 'TLRB', 0, 'C', 0); $fpdf->Ln(); $fpdf->Cell(70, 7, utf8_decode('Setor: ' . Setor::find($novo->colaborador_setor_id)->descricao), 'LTR', 0, 'L'); $fpdf->Cell(0, 7, utf8_decode('Função: ' . SetorFuncao::find($novo->colaborador_funcao_id)->descricao), 'LTR', 0, 'L'); $fpdf->Ln(); $fpdf->Cell(190, 7, utf8_decode('Posto de Trabalho: ' . SetorPosto::find($novo->posto_id)->descricao), 'LTR', 0, 'L'); $fpdf->Ln(); } $fpdf->SetFont('Arial', 'B', 10); $fpdf->Cell(190, 6, utf8_decode('Riscos'), 'TLRB', 0, 'C', 1); $fpdf->Ln(); $fpdf->SetFont('Arial', '', 9); $fpdf->SetFillColor(255); $fpdf->Cell(38, 6, utf8_decode('Físicos'), 'TLRB', 0, 'C'); $fpdf->Cell(28, 6, utf8_decode('Químicos'), 'TLRB', 0, 'C'); $fpdf->Cell(28, 6, utf8_decode('Biológicos'), 'TLRB', 0, 'C'); $fpdf->Cell(43, 6, utf8_decode('Ergonomicos'), 'TLRB', 0, 'C'); $fpdf->Cell(53, 6, utf8_decode('Acidentes'), 'TLRB', 0, 'C'); $fpdf->Ln();