Files
stradaautopartes/resources/views/export/reportePedidoExport.blade.php
2024-04-09 08:32:29 -07:00

56 lines
2.0 KiB
PHP

<table class="table table-hover table-zebra">
<thead>
<tr class="text-neutral">
<th>Orden</th>
<th>Fecha</th>
<th>Cuenta</th>
<th>Telefono</th>
<th>Folio Proveedor</th>
<th>Numero Remision</th>
<th>Liquidado por</th>
<th>Creado por</th>
<th>Entregado por</th>
<th>Cerrado por</th>
<th>Comentarios</th>
<th>Codigo</th>
<th>Linea</th>
<th>Descripcion</th>
<th>Almacen</th>
<th>Cantidad</th>
<th>¿Recibido?</th>
</tr>
</thead>
<tbody>
@foreach ($pedidos as $pedido)
<tr>
<td>{{ $pedido->pedido }}</td>
<td>{{ $pedido->created_at->format('Y-m-d') }}</td>
<td>{{ $pedido->cuenta }}</td>
<td>{{ $pedido->telefono }}</td>
<td>{{ $pedido->folio_proveedor }}</td>
<td>{{ $pedido->numero_remision }}</td>
<td>{{ $pedido->ultimaVentaBy()?->user->name ?? "No Liquidado" }}</td>
<td>{{ $pedido->user->name }}</td>
<td>{{ $pedido->ventaEntregadaUser?->name ?? "No Entregado" }}</td>
<td>{{ $pedido->ventaCerradaUser?->name ?? "No Cerrado" }}</td>
<td>{{ $pedido->comentarios }}</td>
<td>
<table class="table table-hover table-zebra">
<tr></tr>
@foreach ($pedido->productos as $producto)
<tr>
<td>{{ $producto->codigo }}</td>
<td>{{ $producto->linea }}</td>
<td>{{ $producto->descripcion }}</td>
<td>{{ $producto->ruta->ruta }}</td>
<td>{{ $producto->pivot->unidades }}</td>
<td>{{ $producto->pivot->is_arrivo?"Recibido":"No Recibido" }}</td>
</tr>
@endforeach
</table>
</td>
</tr>
@endforeach
</tbody>
</table>