@if (app('request')->input('print') == 'y') @endif
@foreach ($data as $k => $v) @php $slno = 1; $rowcount = 1; $rc = 0; @endphp
@foreach ($v['sold_items'] as $vv) @php $SL = strlen($vv['remarks']); @endphp @if ($SL > 35) @php $rc = 2 + $rc; @endphp @else @php $rc = 1 + $rc; @endphp @endif @if ($rowcount == 15) @php $rowcount = 1; $rc = 0; @endphp @endif @php $slno++; $rowcount++; @endphp @endforeach
S/N
رقم
Description
اسم المنتج
Qty
كمية
Unit
وحدة
Rate
السعر
Amount
مجموع
@php echo $slno; @endphp
@php $myString = $vv['remarks']; $myArray = explode('?', $myString); $result = count($myArray); @endphp @for ($i = 0; $i < $result; $i++) {{ $myArray[$i] }}
@endfor
{{ $vv['quantity'] }}
{{ $vv['mesuring_details']['name'] }}
{{ $vv['price_per_quantity'] }}
{{ $vv['gtotal'] }}
@endforeach