@foreach ($accountingVouchers as $accountingVoucher) @foreach ($accountingVoucher->items as $key => $item) @if ($from != null && $to != null && $loop->iteration >= $from && $loop->iteration <= $to) @php $flag = true; @endphp @for ($i = 1; $i <= $item->quantity; $i++) @if ($flag == true) @endif @php $i = $i + 1; @endphp {{-- @endif --}} @php if ($i % 2 == 1 && $i == $item->quantity) { $flag = false; } @endphp {{-- @if ($i != $item->quantity - 1)
@endif --}} @endfor

{{ $item->stockItem->name }}

@if ($item->stockItem->internal_barcode != null) {{-- --}}

{{ $item->stockItem->internal_barcode }}

@endif {{-- --}}
{{ $company->name }}

{!! DNS1D::getBarcodeHTML($item->stockItem->internal_barcode, 'C128', 2, 35) !!}

{{ $loop->iteration }}/{{ $item->quantity }}

{{ $item->stockItem->item_code }}

Rs. {{ $item->stockItem->mrp }}

{{ $loop->iteration }}/{{ $item->quantity }}

{{ $item->stockItem->name }}

@if ($item->stockItem->internal_barcode != null) {{-- --}}

{{ $item->stockItem->internal_barcode }}

@endif {{-- --}}
{{ $company->name }}

{!! DNS1D::getBarcodeHTML($item->stockItem->internal_barcode, 'C128', 2, 35) !!}

{{ $loop->iteration }}/{{ $item->quantity }}

{{ $item->stockItem->item_code }}

Rs. {{ $item->stockItem->mrp }}

{{ $loop->iteration }}/{{ $item->quantity }}
@endif @endforeach @if ($accountingVouchers->last() != $accountingVoucher)
@endif @endforeach