@extends('layouts.app') @section('stitle', __('messages.Sales')) @section('title', __('messages.Sales')) @section('content')
{{--@if(session()->get('title') == "success") @elseif (session()->get('title') == "error") @elseif($errors->any()) @endif--}}
@include('reports.report_sales_menu')
@if($sales_data->isNotEmpty())
@if($groupOption == 'order_type') @elseif($groupOption == 'cashier') @elseif($groupOption == 'product') @elseif($groupOption == 'category') @endif @foreach($sales_data as $order) @if($groupOption == 'order_type') @elseif($groupOption == 'cashier') @elseif($groupOption == 'product') @elseif($groupOption == 'category') @endif @endforeach
{{__('messages.Branch')}} {{__('messages.branch_reference')}}{{__('Type')}}{{__('messages.cashier')}}{{__('messages.Products')}}{{__('messages.CATEGORY')}}{{__('messages.grossSales')}} {{__('messages.netSalesWithTax')}} {{__('messages.taxes')}} {{__('messages.grossSalesWithoutTax')}} {{__('messages.netSales')}} {{__('messages.orderCount')}} {{__('messages.averageOrder')}} {{__('messages.returnAmount')}}
{{$order->branch->name}} {{$order->branch->reference}}{{$order->orderType->name}}{{$order->user->name}}{{$order->product->name}}{{$order->procategory->name}}{{$order->gross_sales}} {{$order->net_sales_inc_tax}} {{$order->total_tax}} {{$order->gross_sales_exc_tax}} {{$order->net_sales}} {{$order->order_count}} {{number_format($order->average_order,2)}} {{$order->total_return_amount}}
{{__('messages.total')}} {{ $sales_data->sum('gross_sales') }} {{ $sales_data->sum('net_sales_inc_tax') }} {{ $sales_data->sum('total_tax') }} {{ $sales_data->sum('gross_sales_exc_tax') }} {{ $sales_data->sum('net_sales') }} {{ $sales_data->sum('order_count') }} {{ $sales_data->sum('average_order') }} {{ $sales_data->sum('total_return_amount') }}
@else
No Data Found! Adjust the date & filters in the report to get more specific results.
@endif
@endsection @push('my_scripts') @endpush