How to align lines fpdf laravel foreach within foreach

0
foreach ($cotizacion->detalle_cotizacion as $key => $value) {
            $fpdf->Cell($lgCell + $smCell, (1.2 * (count($value->cotizacion_partida))), $value->cubierta->tipo_id, 1, 0, 'C', 1);
            $fpdf->Cell($lgCell, (1.2 * (count($value->cotizacion_partida))), $value->cubierta->tipo_id, 1, 0, 'C', 1);


            foreach ($value->cotizacion_partida as $key => $material) {
                $fpdf->Cell($lgCell + $smCell, 1.2, utf8_decode($material->cotizacion_material->nombre), 1, 10, 'C');
            }
            $fpdf->Cell($smCell, (1.2 * (count($value->cotizacion_partida))), $value->placas, 1, 0, 'C', 1);
            $fpdf->Cell($smCell, (1.2 * (count($value->cotizacion_partida))), $value->baldosas, 1, 0, 'C', 1);
            $fpdf->Cell($smCell, (1.2 * (count($value->cotizacion_partida))), $value->metros_lineales, 1, 0, 'C', 1);

            $fpdf->Ln();
        }

After the materials are ready, the plates, valdosas, ML

    
asked by Enel Villafranca 20.12.2018 в 20:03
source

0 answers