@if($month_wise =="custom_range") @php $date = date('Y-m-d'); @endphp
@endif {{--
--}}

{{-- --}} @if (count($orders) > 0) @foreach ($orders as $key => $order) {{-- --}} @php $subtotal_third = 0; $subtotal_cus_third = 0; @endphp @php $orderdetails = App\Models\OrderDetail::Where('order_id',$order->id)->get(); if(count($orderdetails) > 0) { foreach ($orderdetails as $key => $order_detail) { # code... if (count($order_detail->customers_items) > 0) { foreach ($order_detail->customers_items as $key => $items) { $datacustom = $items->item->variation->pp_price * $items->quantity; $subtotal_cus_third += (float) $datacustom; } } $dataaddSub = $order_detail->quantity * $order_detail->item->variation->pp_price; $subtotal_third += (float) $dataaddSub; } } @endphp @endforeach @else @endif
# KitchenCategory Item Sold Total
{{ $orders->firstitem() + $key }}{{ $order->kitchen->name }} @if( $order->order_detail) @if( $order->order_detail->item) @if( $order->order_detail->item->category) {{ $order->order_detail->item->category->name }} @else-- @endif @else -- @endif @else --@endif @if( $order->order_detail_item){{ $order->order_detail_item->count() }} @else -- @endif ₹ {{number_format($subtotal_third + $subtotal_cus_third,2)}}

No Record Found

@if ($orders) {{ $orders->links('vendor.livewire.bootstrap') }} @endif