@php $i = 1; $lastinvoice = null; @endphp @if (isset($data['order']) && count($data['order']) > 0) @foreach ($data['order'] as $order) @if (count($order->detail) > 0) @foreach ($order->detail as $detail) @if ($lastinvoice != $order->invoice) @php $lastinvoice = $order->invoice; @endphp @else @endif @php $i++; @endphp @endforeach @endif @endforeach @else @endif
No. Member Marketing No.Invoice Tanggal Pembuatan Alamat Total Nama Produk
{{$i}}{{$order->nama_customer}} {{$order->nama_marketing}} {{$order->invoice}} {{$order->tanggal}} {{$order->alamat_kirim}} {{ribuan($order->total_biaya)}} - Same as Above - {{$detail->nama_produk}}
-