@if($deliveredOperator)
Stampa
I.P.A.S. Srl
Piazza Castelnuovo, 16
90141 Palermo
P.Iva 02608940827
Dest:
@if(isset($clientName) && $clientName) {{$clientName}} @else {{$ccoName}} @endif
@if(isset($tipoDoc))
Tipo Doc:
{{$tipoDoc}}
Num: {{$counterDocLink}} del: {{$dateDoc}}
@endif
{{--SUBFAMILY--}}
@foreach($familiesDelivered as $familyDelivered)
Articoli: {{$familyDelivered['name']}} |
{{'Quantità '}} |
@php
$pesoTotale = 0;
@endphp
@if($type=='barcode')
@php
$articles = $familyDelivered['cco'][0]['articles'] ?? null;
@endphp
@if(is_array($articles))
@foreach($articles as $art)
@php
$articleCum = $art['cum'];
$articleUm2 = $art['um2'];
@endphp
{{$art['name']}} |
{{$art['quantity']}}
|
@php
if($art['um2']){
if(isset($pesoTotale)){
$pesoTotale += $art['quantity'] * $art['cum'];
}
else{
$pesoTotale = $art['quantity'] * $art['cum'];
}
}
@endphp
@endforeach
@endif
@else
@if(is_array($familyDelivered['cco']))
@foreach($familyDelivered['cco'] as $ccoModel)
@if($ccoModel['name'] == $ccoName )
@if(is_array($ccoModel['articles']) && count($ccoModel['articles'])>0)
@foreach($ccoModel['articles'] as $art)
{{$art['name']}} |
{{$art['quantity']}}
|
@php
if($art['um2']){
if(isset($pesoTotale)){
$pesoTotale += $art['quantity'] * $art['cum'];
}
else{
$pesoTotale = $art['quantity'] * $art['cum'];
}
}
@endphp
@endforeach
@endif
@endif
@endforeach
@endif
@endif
@if($pesoTotale)
Peso Totale |
{{$pesoTotale}} |
@endif
@endforeach
@endif
_