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


@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=''; $checkOrder=''; $confirmed=''; $note=''; $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 if( (empty($convalid) && $qvalue !== '0') && !empty($request)){ if($qvalue){ $convalid = $qvalue; }else{ $convalid = $request; } } else{ if($qvalue == 0.0){ $check = 0; }else{ if($qvalue){ $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=$convalid;--}} {{-- @endphp--}} {{-- @endif--}} {{-- @if($request && $convalid===0.0)--}} {{-- @php--}} {{-- $check=0;--}} {{-- @endphp--}} {{-- @endif--}} @if($convalid!=0) @php $check=$convalid; @endphp @endif @endforeach @endif @endforeach @endif @endforeach @endif @if(!empty($check)) @php $a++; @endphp @endif @endforeach
Attuale
N Codice Tipo ordine Fornitore UM Richiesta Convalida Ordinato Ricevuto Check Conferma Note
{{$a+1}} {{$article['code']}} {{$article['name']}} @if(isset($article['typeOrder'])) @php $typeOrder = $article['typeOrder']['type']; @endphp @else @php $typeOrder = 'nd'; @endphp @endif {{$typeOrder}} @php $idArticle = $article['id'] ?? ''; $fornitoreArticle = isset($articlesLasersoft[$idArticle]->fornitore['RAGSOCIALE']) ? $articlesLasersoft[$idArticle]->fornitore['RAGSOCIALE'] : $article['fornitore'] ?? ''; $fornitoreID = isset($articlesLasersoft[$idArticle]->fornitore['ID']) ? $articlesLasersoft[$idArticle]->fornitore['ID'] : $article['fornitoreObj']['ID'] ?? 'nd'; @endphp {{-- --}} @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