@extends('layouts.app') @section('content')

{{ __('Product Performance Report') }}

{{ __('Export PDF') }}
@if(request('report_type') == 'custom')
@endif
@if(request('report_type') == 'custom')
@endif
{{ __('Report Period') }}: {{ $startDate }} {{ __('to') }} {{ $endDate }}
@forelse($products as $product) @empty @endforelse
{{ __('Product') }} {{ __('Category') }} {{ __('Quantity Sold') }} {{ __('Total Sales') }}
{{ $product->product->name }} {{ $product->product->category->name }} {{ $product->total_quantity }} {{ number_format($product->total_sales, 2) }}
{{ __('No product data available for the selected period') }}
{{ __('Total') }} {{ $products->sum('total_quantity') }} {{ number_format($products->sum('total_sales'), 2) }}
{{ __('Top 5 Products') }}
@endsection @section('scripts') @endsection