@if ($errors->any())
@foreach ($errors->all() as $e) - {{ $e }}
@endforeach
@endif
@php
// Total neto desde tu tabla pivot humedad_peso (modelo HumedadPeso)
$totalAlfa = (int) $humedad->pesos()->where('origen','A')->sum('neto');
$totalKilate = (int) $humedad->pesos()->where('origen','K')->sum('neto');
$totalGlobal = $totalAlfa + $totalKilate;
@endphp
Total Neto ALFA: {{ number_format($totalAlfa, 0, '.', ',') }}
Total Neto KILATE: {{ number_format($totalKilate, 0, '.', ',') }}
TOTAL NETO: {{ number_format($totalGlobal, 0, '.', ',') }}