@section('title', 'Reports')
@section('top-menu-items')
| Transaction Date | Order # | Wp Order Id | Customer | Product Name | Quantity | Value | Discount | Subtotal | Taxes | Total |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $order->bookings->min('booking_date') ? \Carbon\Carbon::parse($order->bookings->min('booking_date'))->format('Y-m-d') : \Carbon\Carbon::parse($order->order_date)->format('Y-m-d') }} | {{ $order->id }} | {{ $order->wp_order_id }} | {{ $order->orderable?->first_name . ' ' . $order->orderable?->last_name ?? '--' }} | {{ $name }} | {{ $data['count'] }} | {{ number_format($data['price'], 2) }} | {{ $data['discount']}} | {{ number_format($data['subtotal'], 2) }} | {{ number_format((float) $data['total_taxes'], 2) }} | {{ number_format($data['sum'], 2) }} |
| No Orders found. | ||||||||||
| Total: | {{ number_format($totalPrice, 2) }} | {{ $totalDiscount }} | {{ number_format($totalSubtotalSum, 2) }} | {{ number_format($totalTaxesSum, 2) }} | {{ number_format($totalPriceSum, 2) }} | |||||