diff --git a/resources/views/pdfgen/pedido_tabla.blade.php b/resources/views/pdfgen/pedido_tabla.blade.php index 7ed9cbb..17fdbe9 100644 --- a/resources/views/pdfgen/pedido_tabla.blade.php +++ b/resources/views/pdfgen/pedido_tabla.blade.php @@ -4,7 +4,7 @@ background: #CCC } </style> -<h3>{{$pedido->nombre}}</h3> +<h3>{{$pedido['nombre']}}</h3> <table style="width: 100%"> <tr> @@ -25,18 +25,18 @@ </th> </tr> - @foreach($pedido->productos as $producto) - @if(!$producto->bono) + @foreach($pedido['productos'] as $producto) + @if(!$producto['bono']) <tr> <td> - {{ $producto->nombre }} - @if($producto->pivot->notas) - <br /><b>Talle/Color:</b> {{ $producto->pivot->notas }} + {{ $producto['nombre'] }} + @if($producto['pivot']['notas']) + <br /><b>Talle/Color:</b> {{ $producto['pivot']['notas'] }} @endif </td> <td style="text-align: center"> - {{ $producto->pivot->cantidad }} + {{ $producto['pivot']['cantidad'] }} </td> </tr> @endif