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

Interbranch Transfers

@php $completedItems = 0 ; foreach($replenishOrder->replenishOrderLines as $replenishOrderLine){ if($replenishOrderLine->picked_date != null){ $completedItems += 1; } } $totalItems = count($replenishOrder->replenishOrderLines); $leftItems = $totalItems - $completedItems; $progress = 0; $progressLeft = 100; if($completedItems){ $progress = round(($completedItems * 100) / $totalItems); $progressLeft = 100 - $progress; } @endphp
{{ $completedItems }} Completed - {{$progress}}%
{{ $leftItems }} Left - {{$progressLeft}}%
@if($replenishOrder->replenish_order_status_id == 3) @if(isset($trackingNumber))

UPSĀ® Ground

@endif @endif
@if($replenishOrder->replenish_order_status_id == 2)
@endif @if($replenishOrder->delivery_date && $replenishOrder->delivery_vehicle_id)
{{ $replenishOrder->deliveryVehicle->name }} ({{$replenishOrder->deliveryVehicle->branch->short_name}})
@endif {{ $replenishOrder->replenishOrderStatus->name }}
@foreach($replenishOrderLines as $key=>$replenishOrderLine) {{-- @foreach($replenishOrder->replenishOrderLines as $key=>$replenishOrderLine) --}} @php $index=$key + 1; $disabled = $replenishOrderLine->picked_date ? "disabled" : ""; $active = !$replenishOrderLine->active ? "disabled" : ""; @endphp @endforeach
Product Qty Needed Bin Location Picked By Picked At Actions
{{$index}} {{ $replenishOrderLine->product->plu }} {{ $replenishOrderLine->pickedBy?->first_name }} {{ $replenishOrderLine->pickedBy?->last_name }} {{ $replenishOrderLine->picked_date }} @if($disabled) @if($replenishOrder->replenish_order_status_id != 3) @endif @else @if (!$disabled) @endif @endif
@php $showCompleteButton = !$replenishOrder->replenishOrderLines->where('active', 1)->contains('picked_by_id', null) && $replenishOrder->replenish_order_status_id == 2; @endphp @if($replenishOrder->readyToReview()) @endif @if($showCompleteButton) @if(Auth::user()->rol_id == 1 || Auth::user()->id == $replenishOrder->admin_id) @endif @endif
@endsection