Sintaxis de array
This commit is contained in:
parent
b1caed8b15
commit
b04e7e8f45
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue