@extends('layouts.master') @section('styles') @endsection @section('content')
| Code | Product | Category | Sellable | Damaged | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cartons/Bundles | Box/Strips | Pieces | Cartons/Bundles | Box/Strips | Pieces | |||||||
| {{$item->item_sku}} | {{$item->item_name}} | {{$item->main_category_name}} | @if(collect($item->prefs)->count()>0) @php $t = 0; @endphp @foreach ($item->prefs as $pref) @php $t++ @endphp{{ ( ($pref['total_after_damage'] > 0) && $item->resultType == 'minus') ? '-' : '' }}{{$pref['total_after_damage']}} | @endforeach @if((3-$t>0)) @for($i=1; $i<=(3-$t); $i++)0 | @endfor @endif @else@endif @if(collect($item->prefs)->count()>0) @php $t1 = 0; @endphp @foreach ($item->prefs as $pref) @php $t1++ @endphp | {{$pref['total_damage']}} | @endforeach @if((3-$t1>0)) @for($i=1; $i<=(3-$t1); $i++)0 | @endfor @endif @else@endif | ||||