芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/lavishbdlifestyle.com/app/Models/OrdersExport.php
order_ids = $order_ids; } public function collection() { return Order::findMany($this->order_ids); } public function headings(): array { return [ 'Order Code', 'Num. of Products', 'Customer', 'Seller', 'Amount', 'Delivery Status', 'Payment method', 'Payment Status', ]; } /** * @var Order $order */ public function map($order): array { return [ $order->code, count($order->orderDetails), $order->user != null ? $order->user->name : '', $order->shop != null ? $order->shop->name : translate('Inhouse Order'), single_price($order->grand_total), translate(ucfirst(str_replace('_', ' ', $order->delivery_status))), translate(ucfirst(str_replace('_', ' ', $order->payment_type))), translate(ucfirst($order->payment_status)), ]; } }