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

{{--
ITEM SOLD

{{$item_sold}}

--}} {{--
GROSS SALES

₹ {{$gross_sales}}

--}} {{--
DISCOUNTS

₹ {{$discounts}}

--}} {{--
REFUNDS

₹ 0

--}} {{--
TOTAL

₹ {{$product_total}}

--}} {{--

TAXES

₹ {{$tax}}

--}} {{--
NET TOTAL(NET SALES + TAXES)

₹ {{ $grand_total = $net_sales + $tax }}

--}}
{{-- --}} @if (count($item_orders) > 0) @foreach ($item_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
# KitchenItem Item Sold Total
{{ $key }}{{ $order->kitchen->name }} @if( $order->order_detail) @if( $order->order_detail->item) {{ $order->order_detail->item->name }} @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 ($item_orders) {{ $item_orders->links('vendor.livewire.bootstrap') }} @endif