@php use App\Traits\Set; @endphp
@foreach($orders as $row) @endforeach {{-- end orders --}} @foreach($ordersDetail as $row) @endforeach {{-- end orders detail --}}
รหัสคำสั่งซื้อ สินค้า /รายการ จำนวน
วันที่ {{-- empty --}} {{-- excel --}}
{{ $loop->iteration }} {{ $row->orders_id }} {{ $row->sale_name }} {{ $this->countOrdersDetail($row->orders_id) }} รายการ {{ number_format($row->total_amount, 2) }} {{ number_format($row->total_amount, 0) }} {{ Set::dmyThai($row->created_at) }} {{-- empty --}}
{{ $loop->iteration }} {{ $row->orders_id }}
{{ Set::textLimit($row->product_name, 50, '...') }}
{{ number_format($row->quantity, 0) }} {{ number_format($row->amount, 2) }} {{ number_format($row->amount, 0) }} {{ Set::dmyThai($row->created_at) }} {{-- empty --}}
{{ $orders->links('components.paginate') }}
{{ $ordersDetail->links('components.paginate') }}