{{-- New-Unity ERP | app/Modules/Warehouse/Resources/Views/transfers/show.blade.php | v1.0 | 17/07/2026 --}} {{-- v1.0 — Detalle del Transfer Order con acciones por estatus. --}} @extends('layouts.vertical', ['pageTitle' => $transfer->transfer_number]) @section('page-title')

{{ $transfer->transfer_number }} {{ $transfer->status_label }}

@if($transfer->status === 'draft')
@csrf
@endif @if($transfer->status === 'confirmed')
@csrf
@endif @if($transfer->status === 'in_transit') @endif @if(in_array($transfer->status, ['draft', 'confirmed'])) @endif {{ __('warehouse.back') }}
@endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($transfer->status === 'in_transit')
{{ __('warehouse.material-in-tbridge') }} {{ __('warehouse.go-to-receive', ['wh' => $transfer->to_warehouse_code]) }}
@endif
{{-- Transfer info --}}
{{-- Origen --}}
{{ __('warehouse.from-origin-caps') }}
{{ $transfer->from_warehouse_code }}
{{ $transfer->fromWarehouse?->name }}
@if($transfer->from_bin_id)
{{ $transfer->from_bin_id }} {{ $transfer->fromLocation?->code }}
@endif
{{-- Arrow --}}
T-BRIDGE
{{-- Destino --}}
{{ __('warehouse.to-destination-caps') }}
{{ $transfer->to_warehouse_code }}
{{ $transfer->toWarehouse?->name }}
@if($transfer->to_bin_id)
{{ $transfer->to_bin_id }} {{ $transfer->toLocation?->code }}
@else
{{ __('warehouse.bin-not-assigned') }}
@endif

{{ __('warehouse.product') }}
{{ $transfer->product_name }}
{{ __('warehouse.lot-number') }}
{{ $transfer->lot_number }}
{{ __('warehouse.qty-requested') }}
{{ number_format($transfer->quantity_requested, 2) }} {{ $transfer->unit }}
{{ __('warehouse.unit-cost-lbl') }}
${{ number_format($transfer->unit_cost, 2) }}
{{ __('warehouse.total-value') }}
${{ number_format($transfer->total_cost, 2) }}
{{ __('warehouse.no-financial-impact') }}
@if($transfer->notes)
{{ __('warehouse.notes') }}
{{ $transfer->notes }}
@endif
{{-- Document Flow --}}

{{ __('warehouse.document-flow') }}

@php $steps = [ 'draft' => [__('warehouse.step-draft'), 'secondary', $transfer->created_at, $transfer->createdBy?->name], 'confirmed' => [__('warehouse.step-confirmed'), 'info', $transfer->confirmed_at, null], 'in_transit' => [__('warehouse.step-dispatched-tbridge'), 'warning', $transfer->dispatched_at, null], 'received' => [__('warehouse.step-received-at', ['wh' => $transfer->to_warehouse_code]), 'success', $transfer->received_at, $transfer->receivedBy?->name], ]; $statusOrder = ['draft', 'confirmed', 'in_transit', 'received']; $currentIdx = array_search($transfer->status, $statusOrder); @endphp @foreach($steps as $key => $step) @php $idx = array_search($key, $statusOrder); @endphp
{{ $step[0] }}
@if($step[2])
{{ \Carbon\Carbon::parse($step[2])->format('d/m/Y H:i') }} @if($step[3]) — {{ $step[3] }} @endif
@else
{{ __('warehouse.pending-word') }}
@endif
@endforeach
{{-- Modal Receive --}} @if($transfer->status === 'in_transit') @endif {{-- Modal Cancel --}} @if(in_array($transfer->status, ['draft', 'confirmed'])) @endif @endsection @section('scripts') @endsection