@php $selectedDestination = old('destination'); if (! $selectedDestination && old('destination_warehouse_id')) { $selectedDestination = 'warehouse:'.old('destination_warehouse_id'); } if (! $selectedDestination && old('project_id')) { $selectedDestination = 'project:'.old('project_id'); } if (! $selectedDestination && ! empty($goodsReceipt)) { $selectedDestination = $goodsReceipt->destinationValue(); } @endphp @if (($siteProjects ?? collect())->isEmpty())

No approved / in-progress projects found for direct site delivery.

@else

Choose a warehouse, or a project site for direct delivery (a revision is created automatically if needed).

@endif