@extends('layouts.app') @section('content')
{{ __('fields.cost_calculation.detalle_Calculo_costos') }}
{{ __('fields.buttons_descargar') }}
{{ __('fields.cost_calculation.small_2') }}
  • {{ __('fields.cost_calculation.product_name') }}: {{ $costCalculation->product_name }}
  • {{ __('fields.cost_calculation.tipo') }}: {{ $costCalculation->type === 'product' ? 'Producto físico' : 'Servicio de impresión' }}
    {{ __('fields.cost_calculation.sku') }}: {{ $costCalculation->sku ?? '—' }}
  • {{ __('fields.cost_calculation.production_time_minutes') }}: {{ $costCalculation->production_time_minutes ? $costCalculation->production_time_minutes . ' min' : '—' }}
{{-- Costos --}}
@foreach ($costs as $label => $value)
{{ __('fields.moneda') }}{{ number_format($value ?? 0, 2) }}
@endforeach
  • {{ __('fields.cost_calculation.production_time_minutes') }}: ${{ number_format($costCalculation->p_total_real_cost, 2) }}
  • {{ __('fields.cost_calculation.desired_profit') }}: {{ number_format($costCalculation->desired_profit ?? 0, 2) }}%
  • {{ __('fields.cost_calculation.h6_precio_sugerido') }}: ${{ number_format($costCalculation->suggested_price, 2) }}
  • {{ __('fields.cost_calculation.h6_prcio_actual_venta') }}: {{ $costCalculation->current_price ? '$' . number_format($costCalculation->current_price, 2) : '—' }}
  • {{ __('fields.cost_calculation.ganancia_real') }}: {{ $costCalculation->real_profit !== null ? '$' . number_format($costCalculation->real_profit, 2) : '—' }}
  • {{ __('fields.cost_calculation.ganancia_real') }} {{ $costCalculation->margin_percentage !== null ? number_format($costCalculation->margin_percentage, 2) . '%' : '—' }}
  • {{ __('fields.cost_calculation.rentabilidad') }}: {!! $costCalculation->profitability ?? '—' !!}
{{ __('fields.cost_calculation.notes') }} {{ $costCalculation->notes ?? 'Sin notas adicionales.' }}
{{ __('fields.cost_calculation.distribucion_costos') }}
{{ __('fields.cost_calculation.comparacion_precios_margen') }}
@push('scripts') {{-- Traducciones JS para etiquetas de rentabilidad Se inyectan como variables globales para uso en cost-calculation.js --}} @endpush @endsection