@extends('layouts.app') @section('title', 'Dashboard de Costos') @section('page-title', 'Costos Operativos') @section('breadcrumb')
Costo Total
Ventas del Mes
{{ $resultado >= 0 ? 'Resultado (+)' : 'Pérdida (-)' }}
Margen Neto
OPs del Mes
Gastos Fijos
| Concepto | Monto | % |
|---|---|---|
| {{ $label }} | S/ {{ number_format($monto, 2) }} | {{ $totalCostos > 0 ? number_format(($monto/$totalCostos)*100, 1).'%' : '—' }} |
| {{ $catLabels[$cat]['label'] ?? $cat }} | S/ {{ number_format($monto, 2) }} | {{ $totalCostos > 0 ? number_format(($monto/$totalCostos)*100, 1).'%' : '—' }} |
| TOTAL COSTOS | S/ {{ number_format($totalCostos, 2) }} | 100% |
| {{ \App\Models\GastoOperativo::$CATEGORIAS[$cat]['label'] ?? $cat }} | S/ {{ number_format($monto, 2) }} |
| OP | C. Directo | C. Indirecto | Total Costo | Venta | Margen | % |
|---|---|---|---|---|---|---|
|
{{ $r['op']->numero }}
{{ $r['op']->tipo_produccion }}
|
S/ {{ number_format($r['costo_directo'], 2) }} | S/ {{ number_format($r['costo_moi'], 2) }} | S/ {{ number_format($r['costo_total'], 2) }} | {{ $r['precio_venta'] > 0 ? 'S/ '.number_format($r['precio_venta'], 2) : '—' }} | {{ $r['precio_venta'] > 0 ? 'S/ '.number_format($r['margen'], 2) : '—' }} | @if(!is_null($pct)) {{ number_format($pct, 1) }}% @else — @endif |
| MP: S/ {{ number_format($r['costo_mp'],2) }} | Ins: S/ {{ number_format($r['costo_insumos'],2) }} | Env: S/ {{ number_format($r['costo_envases'],2) }} | MOD: S/ {{ number_format($r['costo_mod'],2) }} (prorateado {{ $numOPs }} OP{{ $numOPs>1?'s':'' }}) | |||||
| TOTAL MES | S/ {{ number_format($totalCostos, 2) }} | S/ {{ number_format($totalVentas, 2) }} | S/ {{ number_format($resultado, 2) }} | {{ number_format($margenGlobal, 1) }}% | ||
| N° | OP | Fecha | Estado | Costo |
|---|---|---|---|---|
| {{ $d->numero }} | {{ $d->ordenProduccion?->numero ?? '—' }} | {{ $d->fecha->format('d/m') }} | {{ ucfirst($d->estado) }} | S/ {{ number_format($d->costo_total, 2) }} |