@extends('layouts.simple') @section('styles') @endsection @section('content')
{{ config('app.name', 'LIBRERIA ELY') }}

Artículos Registrados

Listado de Inventario
@php $pventaTotal = 0; $pcostoTotal = 0; @endphp @foreach ($articulos as $art) @php $pventaTotal += $art->p_venta * $art->stock; $pcostoTotal += $art->p_costo * $art->stock; $isLowStock = isset($art->stock_maximo) && $art->stock <= $art->stock_maximo; @endphp @endforeach
Nombre Descripción Categoría Precio Venta Precio Costo Utilidad Stock Stock Máx. Fabricante Medida Unidad Ubicación
{{ $art->nombre }} {!! $art->descripcion !!} {{ $art->nomCat }} Q. {{ number_format($art->p_venta, 2) }} Q. {{ number_format($art->p_costo, 2) }} Q. {{ number_format($art->p_venta - $art->p_costo, 2) }} {{ $art->stock }} {{ $art->stock_maximo }} {{ $art->fabricante ?? '-' }} {{ $art->medida ?? '-' }} {{ $art->unidad ?? '-' }} {{ $art->ubicacion ?? '-' }}
Resumen General
Total Tipos de Artículos: {{ number_format($total ?? count($articulos), 0) }}
Total Precio Venta: Q. {{ number_format($pventaTotal, 2) }}
Total Precio Costo: Q. {{ number_format($pcostoTotal, 2) }}

Total Utilidad: Q. {{ number_format($pventaTotal - $pcostoTotal, 2) }}
@endsection