اجمالي الطلبات : {{ number_format($orders->total()) }}
اجمالي الخصومات : {{ number_format($total['discount']) }}
@foreach ($orders as $order) @php $promocodeDiscount = $order->discounts->where('type' , 'promocode')->first() ; @endphp @endforeach
ID الاجمالي الخصم الكوبون تاريخ الانشاء تاريخ الطلب
{{ $order->id }} {{ $order->total }} {{ $promocodeDiscount->amount ?? $promocodeDiscount->total_discount }} {{ $promocodeDiscount->data['promocode'] }} {{ $order->created_at }} {{ $order->date }}
{{ $orders->appends(request()->except('page'))->links() }}