@extends('modules.head') @section('contenido')

Interbranch Receipt @if($receiptOrder->receipt_order_status_id == 1) @endif

{{ $receiptOrder->receiptOrderStatus->name }}
@foreach($receiptOrder->receiptOrderLines as $key=>$receiptOrderLine) @php $index=$key + 1; $disabled = $receiptOrderLine->picked_date ? "disabled" : ""; @endphp @endforeach
Product Qty Bin Location Picked By Picked At Actions
{{$index}} {{ $receiptOrderLine->product->plu }}
@if($receiptOrderLine->bo_bin_location_id and $receiptOrderLine->boBinLocation) @elseif($receiptOrderLine->last_pickable_bin) @else @endif
{{ $receiptOrderLine->pickedBy?->first_name }} {{ $receiptOrderLine->pickedBy?->last_name }} {{ $receiptOrderLine->picked_date }} @if($receiptOrder->receipt_order_status_id != 1) @endif @if($receiptOrder->receipt_order_status_id == 2 and $disabled) @endif
@php $showCompleteButton = !$receiptOrder->receiptOrderLines->contains('picked_by_id', null) && $receiptOrder->receipt_order_status_id == 2; @endphp @if($showCompleteButton) @if(Auth::user()->rol_id == 1 || Auth::user()->id == $receiptOrder->admin_id || Auth::user()->isAdmin()) @endif @endif
@endsection