@extends("layouts.app") @section("content")
Total de ventas ultimos 30 dias

${{number_format($totalVentas->valor, 2)}}

Total de Pedidos ultimos 30 dias

${{number_format($totalPedidos->valor, 2)}}

Total de Clientes

{{number_format($totalClientes->total)}}

Total de Productos

{{number_format($totalProductos->total)}}

Productos Populares

@if(count($productosPopulares) > 0) @foreach($productosPopulares as $p) @endforeach @else @endif
Imagen SKU Nombre Precio de Venta Stock Estado
{{$p->codigo}} {{$p->codigo}} {{$p->nombre}} $ {{number_format($p->precioVenta, 2)}}
@php $bar = ($p->stock > 100) ? 100 : $p->stock; @endphp @if($p->stock < 10 && $p->stock >= 3)
{{number_format($p->stock)}}
@elseif($p->stock < 3)
{{number_format($p->stock)}}
@else
{{number_format($p->stock)}}
@endif
{{$p->estado}}
Sin registro
@endsection @section("js") @endsection