@push('title') Price Adjustment Report @endpush
Price Adjustment Report
to
{{ number_format($logs->total()) }}
Total Adjustments
{{ number_format($logs->count() ? $logs->sum('new_retail_price') / $logs->count() : 0, 2) }}
Avg. New Retail Price
@php $increasedCount = $logs->filter(function($log) { return $log->new_retail_price > $log->old_retail_price; })->count(); $decreasedCount = $logs->filter(function($log) { return $log->new_retail_price < $log->old_retail_price; })->count(); @endphp
{{ number_format($increasedCount) }} | {{ number_format($decreasedCount) }}
Retail Price Changes
@forelse($logs as $log) @empty @endforelse
Date & Time Adjusted By Product Info Batch & Warehouse Cost Price Wholesale Price Retail Price
{{ $log->created_at->format('M d, Y') }} {{ $log->created_at->format('h:i A') }}
{{ substr($log->user->name ?? '?', 0, 1) }}
{{ $log->user->name ?? 'N/A' }}
{{ $log->product->name ?? 'N/A' }} {{ $log->product->code ?? '' }} @if($log->productVariation && $log->productVariation->variationType) | {{ $log->productVariation->variationType->name }} @endif
{{ $log->productBatch->batch_no ?? 'N/A' }} {{ $log->productBatch->warehouse->name ?? 'N/A' }}
{{ number_format($log->old_cost_price, 2) }} {{ number_format($log->new_cost_price, 2) }}
{{ number_format($log->old_wholesale_price, 2) }} {{ number_format($log->new_wholesale_price, 2) }}
{{ number_format($log->old_retail_price, 2) }} {{ number_format($log->new_retail_price, 2) }}

No price adjustment logs found for the selected criteria.

{{ $logs->links() }}