@extends('layouts.reportSaleForm') @section('report') @if($orders->count()>0) @foreach($orders as $order)
90 รายงานยอดขายและทุนระหว่างวันที่ {{$sdate}} ถึง {{$edate}} วันที่เวลาพิมพ์ {{now()}}
เลขที่ใบเสร็จ สมาชิก วันที่ เข้ายอด PV ราคา RP ราคา AG Profit ราคา ทุน
{{$order->order_id}} {{$order->fname}} {{$order->lname}} {{$order->date}} {{$order->pyear.'/'.$order->pmth}} {{number_format($order->totpv)}} {{number_format($order->price)}} {{number_format($order->agprice)}} {{number_format($order->pfprice)}} {{number_format($order->get_cost($order->order_id),2)}}