@php $count = sizeof($waybill_data); $remain_cards = $count % 2; $full_page_count = ($count - $remain_cards) / 2; @endphp @for ($i = 0; $i < $full_page_count; $i++)
@php $start = $i * 2; $end = ($i+1) * 2; // if ($start != 0) { // $start = $end; // } $items_loop = array_slice($waybill_data, $start, 2); // echo json_encode($items_loop); @endphp @foreach ($items_loop as $key => $item) @if (($key + 1) % 1 != 0)
@endif

CUSTOMER DETAILS | {{ $item['waybill_no'] }}

{{-- --}}
{{ strtoupper($item['customer_name']) }}
{{-- --}}
{{ strtoupper($item['landmark']).', '.strtoupper($item['city'])}}
{{-- --}}
{{ $item['mobile'].', '.$item['mobile_2'] }}
{{-- --}}
{{ number_format($item['cod_amount'],2) }}
barcode
{{$item['waybill_no']}}

KINGDOM OF RINGS
ELATHOTA ROAD, BALAPITIYA
0777 408 506 | facebook.com/KindomOfRings

@if (($key + 1) % 1 == 0)
@endif @endforeach
@endfor
@php $start = $full_page_count * 2; $end = ($i+1) * 2; $items_loop = array_slice($waybill_data, $start, 2); @endphp @foreach ($items_loop as $key => $item) @if (($key + 1) % 1 != 0)
@endif

CUSTOMER DETAILS | {{ $item['waybill_no'] }}

{{-- --}}
{{ strtoupper($item['customer_name']) }}
{{-- --}}
{{ strtoupper($item['landmark']).', '.strtoupper($item['city'])}}
{{-- --}}
{{ $item['mobile'].', '.$item['mobile_2'] }}
{{-- --}}
{{ number_format($item['cod_amount'],2) }}
barcode
{{$item['waybill_no']}}

KINGDOM OF RINGS
ELATHOTA ROAD, BALAPITIYA
0777 408 506 | facebook.com/KindomOfRings

@if (($key + 1) % 1 == 0)
@endif @endforeach