@php /** @var \Illuminate\Support\Carbon $from */ /** @var \Illuminate\Support\Carbon $to */ @endphp

{{ __('Purchase Report') }}

{{ __('View') }}
{{ __('Total Spend') }}
{{ number_format($report['total_spend'], 2) }}
{{ __('Orders') }}
{{ $report['order_count'] }}

{{ __('Spend by Supplier') }}

{{ __('Orders by Status') }}

@forelse ($report['by_status'] as $status => $count) @empty @endforelse
{{ ucfirst(str_replace('_', ' ', $status)) }} {{ $count }}
{{ __('No orders in this period.') }}
@push('scripts') @vite('resources/js/reports.js') @endpush