Implementacion de modulo de pedidos
This commit is contained in:
52
resources/views/export/reportePedidoExport.blade.php
Normal file
52
resources/views/export/reportePedidoExport.blade.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<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>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->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->prefijo }}</td>
|
||||
<td>{{ $producto->pivot->unidades }}</td>
|
||||
<td>{{ $producto->pivot->is_arrivo?"Recibido":"No Recibido" }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user