@if($replenishOrder->replenish_order_status_id == 3)
@if(isset($trackingNumber))
@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 }}
@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