@extends('layouts.app') @section('content')
Humedades
Nueva Humedad
@if(session('success'))
{{ session('success') }}
@endif @if(session('info'))
{{ session('info') }}
@endif
@forelse($humedades as $h) @php $pesoTotal = $h->pesos->sum(fn($p) => (int)$p->neto); $periodoTexto = ($h->periodo_inicio && $h->periodo_fin) ? \Carbon\Carbon::parse($h->periodo_inicio)->format('d/m/Y') . ' AL ' . \Carbon\Carbon::parse($h->periodo_fin)->format('d/m/Y') : ''; @endphp @empty @endforelse
Código Mineral Fecha recepción Periodo Fecha emisión Razón social Humedad Peso (W) Obs. Tickets Acciones
{{ $h->codigo ?? $h->id }} {{ $h->mineral->nombre ?? '' }} {{ $h->fecha_recepcion ? \Carbon\Carbon::parse($h->fecha_recepcion)->format('d/m/Y') : '' }} {{ $periodoTexto }} {{ $h->fecha_emision ? \Carbon\Carbon::parse($h->fecha_emision)->format('d/m/Y') : '' }} {{ $h->cliente->razon_social ?? '' }} {{ $h->humedad ?? '' }} {{ number_format($pesoTotal, 0, '.', ',') }}
{{ $h->observaciones ?? '' }}
@foreach($h->pesos as $p) {{ $p->nro_salida }} - {{ $p->origen }} @endforeach Ver Editar Informe
@csrf @method('DELETE')
Sin registros
{{ $humedades->links() }}
@endsection @push('js') @endpush