@php use App\States\Order\State\Pending; @endphp @php use App\Actions\Stock\CheckInStock; @endphp

Magasin: {{ $order->store->name }}

@foreach($order->requests as $article)

@if($order->state == Pending::class) @php($inStock = CheckInStock::run($order->warehouse, [$article])->isEmpty()) @if($inStock) @else @endif @endif {{ $article->item->name }} {{ $article->quantity }}

@endforeach