{{-- New-Unity ERP | app/Modules/Warehouse/Resources/Views/receptions/show.blade.php | v1.0 | 10/07/2026 01:18:00 --}} {{-- v1.0 — Detalle de recepción con resultado de confrontación y lotes creados. --}} @extends('layouts.vertical', ['pageTitle' => __('warehouse.reception-detail')]) @section('page-title')

{{ $reception->reception_number }} {{ __('warehouse.gr-detail') }}

{{ __('warehouse.back-to-receptions') }}
@endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif
{{-- Header info --}}
{{ __('warehouse.result') }}
{{ ucfirst($reception->result) }}
{{ __('warehouse.po-reference') }}
{{ $reception->purchase_order_number }}
{{ __('warehouse.warehouse-zone') }}
{{ $reception->warehouse->code ?? '—' }} / {{ $reception->zone->code ?? '—' }}
{{ __('warehouse.received-by') }}
{{ $reception->receivedBy->name ?? '—' }}
{{ __('warehouse.date') }}
{{ $reception->received_at?->format('d/m/Y H:i') }}

{{ __('warehouse.ordered') }}
{{ number_format($reception->quantity_ordered, 2) }}
{{ __('warehouse.received') }}
{{ number_format($reception->quantity_received, 2) }}
{{ __('warehouse.accepted') }}
{{ number_format($reception->quantity_accepted, 2) }}
{{ __('warehouse.rejected') }}
{{ number_format($reception->quantity_rejected, 2) }}
{{-- Reglas de confrontación --}}

{{ __('warehouse.inspection-results') }}

@forelse($reception->details as $detail) @empty @endforelse
{{ __('warehouse.rule') }} {{ __('warehouse.result') }} {{ __('warehouse.lbl-expected') }} {{ __('warehouse.lbl-received') }} {{ __('warehouse.variance') }} {{ __('warehouse.observations') }} {{ __('warehouse.photo') }}
{{ $detail->rule->rule_name ?? '—' }}
{{ $detail->rule->rule_type_label ?? '' }}
{{ $detail->result_label }} {{ $detail->value_expected ? number_format($detail->value_expected, 2) : '—' }} {{ $detail->value_received ? number_format($detail->value_received, 2) : '—' }} {{ $detail->variance !== null ? number_format($detail->variance, 2) : '—' }} {{ $detail->observations ?? '—' }} @if($detail->photo_taken) {{ __('warehouse.taken') }} @else @endif
{{ __('warehouse.no-inspection-details') }}
{{-- Certificado --}} @if($reception->has_quality_cert)

{{ __('warehouse.quality-certificate') }}

{{ __('warehouse.number-colon') }} {{ $reception->cert_number ?? '—' }}
{{ __('warehouse.date-colon') }} {{ $reception->cert_date?->format('d/m/Y') ?? '—' }}
@if($reception->cert_reference)
{{ __('warehouse.file-colon') }} {{ $reception->cert_reference }}
@endif
@endif {{-- Foto --}} @if($reception->photo_folder_reference)

{{ __('warehouse.photo-evidence') }}

{{ $reception->photo_folder_reference }}
@endif {{-- Notas --}} @if($reception->notes || $reception->rejection_reason)

{{ __('warehouse.notes') }}

@if($reception->notes)

{{ $reception->notes }}

@endif @if($reception->rejection_reason)
{{ __('warehouse.rejection-reason-colon') }} {{ $reception->rejection_reason }}
@endif
@endif
@endsection