{{ __('Sales Report') }}

{{ __('Total Sales Amount') }}

{{ number_format($totalSales, 2) }}

{{ __('Total Transactions') }}

{{ number_format($totalTransactions) }}

{{ __('Period') }}

{{ $periodLabel ?? 'Period not specified' }}

{{ __('Sales Details') }}

@forelse($sales as $sale) @empty @endforelse
{{ __('Date') }} {{ __('Customer') }} {{ __('Product') }} {{ __('Quantity') }} {{ __('Selling Price/Unit') }} {{ __('Total Selling Price') }} {{ __('Processed By') }}
{{ $sale->created_at->format('Y-m-d H:i') }} {{ $sale->customer->username ?? 'N/A' }} {{ $sale->product->name ?? 'N/A' }} {{ number_format($sale->quantity) }} {{ number_format($sale->selling_price_per_unit, 2) }} {{ number_format($sale->total_price, 2) }} {{ $sale->soldBy->name ?? 'N/A' }}
{{ __('No sales found for the selected period.') }}
{{ __('Total:') }} {{ number_format($totalSales, 2) }}
@if($sales->hasPages())
{{ $sales->appends(request()->query())->links() }}
@endif