@php $paymentGateway = \App\Models\PaymentGatewayCredential::select('stripe_status', 'razorpay_status') ->where('restaurant_id', restaurant()->id) ->first(); @endphp

@lang('menu.salesReport')

@lang('modules.report.salesReportMessage')

@lang('modules.report.totalSales')

{{ currency_format($menuItems->sum('total_amount')) }}

{{ $menuItems->sum('total_orders') }} @lang('modules.report.orders')

@lang('modules.report.totalCharges')

{{ currency_format($charges->sum(fn($charge) => $menuItems->sum(fn($item) => $item['charges'][$charge->charge_name] ?? 0))) }}

@lang('modules.report.totalTaxes')

{{ currency_format($menuItems->sum(fn($item) => collect($item['taxes'])->sum())) }}

@lang('modules.report.cashPayments')

{{ currency_format($menuItems->sum('cash_amount')) }}

@lang('modules.report.digitalPayments')

{{ currency_format($menuItems->sum('card_amount') + $menuItems->sum('upi_amount')) }}

@lang('modules.order.upi'): {{ currency_format($menuItems->sum('upi_amount')) }} + @lang('modules.order.card'): {{ currency_format($menuItems->sum('card_amount')) }}

@lang('app.to')
@lang('app.export')
@if(count($charges) > 0) @endif @if(count($taxes) > 0) @endif @foreach ($charges as $charge) @endforeach @foreach ($taxes as $tax) @endforeach @if($paymentGateway->razorpay_status) @endif @if($paymentGateway->stripe_status) @endif @forelse ($menuItems as $item) @foreach ($charges as $charge) @endforeach @foreach ($taxes as $tax) @endforeach @if($paymentGateway->razorpay_status) @endif @if($paymentGateway->stripe_status) @endif @empty @endforelse
@lang('app.date') @lang('modules.report.totalOrders') @lang('modules.order.extraCharges') @lang('modules.order.taxes') @lang('modules.report.paymentMethods') @lang('modules.order.tip') @lang('modules.order.total')
{{ $charge->charge_name }} {{ $tax->tax_name }} ({{ $tax->tax_percent }}%) @lang('modules.order.cash') @lang('modules.order.upi') @lang('modules.order.card') @lang('modules.order.razorpay') @lang('modules.order.stripe')
{{ \Carbon\Carbon::parse($item['date'])->format('M d, Y') }} {{ $item['total_orders'] }} {{ currency_format($item['charges'][$charge->charge_name] ?? 0) }} {{ currency_format($item['taxes'][$tax->tax_name] ?? 0) }} {{ currency_format($item['cash_amount']) }} {{ currency_format($item['upi_amount']) }} {{ currency_format($item['card_amount']) }} {{ currency_format($item['razorpay_amount']) }} {{ currency_format($item['stripe_amount']) }} {{ currency_format($item['tip_amount']) }} {{ currency_format($item['total_amount']) }}
@lang('messages.noItemAdded')
@script @endscript