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 background: #CCC
} }
</style> </style>
<h3>{{$pedido->nombre}}</h3> <h3>{{$pedido['nombre']}}</h3>
<table style="width: 100%"> <table style="width: 100%">
<tr> <tr>
@ -25,18 +25,18 @@
</th> </th>
</tr> </tr>
@foreach($pedido->productos as $producto) @foreach($pedido['productos'] as $producto)
@if(!$producto->bono) @if(!$producto['bono'])
<tr> <tr>
<td> <td>
{{ $producto->nombre }} {{ $producto['nombre'] }}
@if($producto->pivot->notas) @if($producto['pivot']['notas'])
<br /><b>Talle/Color:</b> {{ $producto->pivot->notas }} <br /><b>Talle/Color:</b> {{ $producto['pivot']['notas'] }}
@endif @endif
</td> </td>
<td style="text-align: center"> <td style="text-align: center">
{{ $producto->pivot->cantidad }} {{ $producto['pivot']['cantidad'] }}
</td> </td>
</tr> </tr>
@endif @endif