@extends('layout') @section('content') @php $disabled = 'disabled'; @endphp @if(!empty(Auth::user()->role) && Auth::user()->role == 'admin') @php $disabled = ''; @endphp @endif


@if (Session::has('success'))

{{ Session::get('success') }}


@elseif(Session::has('error'))

{{ Session::get('error') }}


@endif
@csrf
Data Consegna:
@if($remainedOperator)

Tipo documento: {{$remainedOperator->id}}

Data: {{$remainedOperator->created_at}}

@endif @if($remained->articles) @php $a=0; $quantity=''; @endphp @foreach($remained->articles as $article) @if($remained->submagazine) @foreach($remained->submagazine as $submagazine) @php $quantity=''; $request=''; $convalid=''; $availability=''; $check=''; @endphp @if(isset($remainedOperator->articles)) @foreach($remainedOperator->articles as $art) @if($art['id']==$article['id'] && isset($art['quantity']['curr']) ) @foreach($art['quantity']['curr'] as $qname => $qvalue) @if($qname==$submagazine['name']) @php $quantity=$qvalue; @endphp @endif @if($qname=='request') @php $request=(float)$qvalue; @endphp @endif @if($qname=='convalid') @php $convalid=(float)$qvalue; @endphp @endif @if($qname=='availability') @php $availability=$qvalue; @endphp @endif @if($qname=='check') @php $check=$qvalue; @endphp @endif {{--CHECK--}} @if($request && $convalid!==0) @php $check=$request; @endphp @endif @if($request && $convalid===0.0) @php $check=0; @endphp @endif @if($convalid) @php $check=$convalid; @endphp @endif @endforeach @endif @endforeach @endif @endforeach @endif @if(!empty($check)) @endif @php $a++; @endphp @endforeach
Attuale
Codice Articolo - Tot: Tipo ordine Fornitore UM Richiesta Convalida Ordinato Ricevuto
{{$article['code']}} {{$article['name']}} @if(isset($article['typeOrder'])) @php $typeOrder = $article['typeOrder']['type']; @endphp @else @php $typeOrder = 'nd'; @endphp @endif {{$typeOrder}} @if(isset($article['fornitoreObj']['ID'])) @php $fornitoreID = $article['fornitoreObj']['ID']; @endphp @else @php $fornitoreID = 'nd'; @endphp @endif {{-- --}} @if($article['um2']) {{$article['um2']}} @else {{$article['um1']}} @endif {{$request}} {{$convalid}} {{$availability}} @if(!empty(Auth::user()->role) && Auth::user()->role == 'admin') @else {{$check}} @endif
@endif
@endsection