Sintaxis de array

This commit is contained in:
Alejandro Tasistro 2025-05-09 18:07:54 -03:00
parent b1caed8b15
commit b04e7e8f45

View file

@ -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