{{-- resources/views/stock_aging/turnover_analysis.blade.php --}} @extends('layouts.app') @section('title', 'Stock Turnover Analysis') @section('content')

Stock Turnover Analysis

@component('components.widget', ['title' => 'Turnover Analysis'])
@forelse($data as $item) @empty @endforelse
Product Location Qty in Stock Stock Value Qty Sold (6 months) Avg Monthly Sales Stock Turnover Est. Days to Sell Days in Stock Action
{{ $item['product_name'] }} ({{ $item['sku'] }}) {{ $item['location_name'] }} {{ number_format($item['quantity'], 2) }} {{ $item['unit'] ?? '' }} KSh {{ number_format($item['stock_value'], 2) }} {{ number_format($item['quantity_sold'], 2) }} {{ number_format($item['avg_monthly_sales'], 2) }} @if($item['stock_turnover'] > 5) {{ $item['stock_turnover'] }} @elseif($item['stock_turnover'] > 2) {{ $item['stock_turnover'] }} @else {{ $item['stock_turnover'] }} @endif @if($item['estimated_days_to_sell'] !== null) @if($item['estimated_days_to_sell'] <= 30) {{ $item['estimated_days_to_sell'] }} days @elseif($item['estimated_days_to_sell'] <= 60) {{ $item['estimated_days_to_sell'] }} days @else {{ $item['estimated_days_to_sell'] }} days @endif @else N/A @endif {{ $item['avg_days_in_stock'] }} days
No data available.
@endcomponent
@stop