@extends('layouts.dashboard') @section('css') @endsection @section('content')
@csrf

Warning: Undefined variable $has_product_item in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 32
{{-- New Products --}} @if ($sales_forecast['add_new_products'] == 1)
{{-- Monthly Seasonality --}}
@slot('table_header') {{ __('Dates') }} @foreach ($new_products_totals as $date => $value) {{ date('M-Y', strtotime($date)) }} @endforeach {{ __('Total Values') }} @endslot @slot('table_body') @foreach ($new_products_seasonalities as $product_name => $product_data) {{ $product_name }} @foreach ($new_products_totals as $date => $value) {{ number_format($product_data[$date] ?? 0) }} @endforeach {{ number_format(array_sum($product_data)) }} @endforeach {{ __('Month Total') }} @foreach ($new_products_totals as $date => $value) {{ number_format($value) }} @endforeach {{ number_format(array_sum($new_products_totals)) }} @endslot
@endif @if((hasProductsItems($company)))

{{ __('Sales Forecast') }}

{{ __('Existing Product '.$name.' Target Year ') .date('Y', strtotime($sales_forecast->start_date)) .' : ' .number_format($existing_products_sales_targets) }}



@slot('table_header') {{ __('Product '.$name.' Name') }} @foreach ($monthly_dates as $date => $value) {{ date('M-Y', strtotime($date)) }} @endforeach {{ __('Total') }} @endslot @slot('table_body') @foreach ($existing_products_targets as $item => $product_data) {{ $item ?? '-' }} @foreach ($product_data as $date => $value)
Warning: Undefined variable $date in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 141

Warning: Undefined variable $value in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 141

Warning: Undefined variable $date in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 141

Warning: Undefined variable $value in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 142
{{ number_format(($value??0)) }} @endforeach {{ number_format($total_existing_targets) }} @endforeach {{ __('Total') }} @foreach ($totals_per_month as $date => $value) {{ number_format($value) }} @endforeach {{ number_format(array_sum($totals_per_month)) }} @endslot
@endif
{{-- Monthly Seasonality --}}
@slot('table_header') {{ __('Dates') }} @foreach ($totals_per_month?:$monthly_dates as $date => $value) {{ $date }} @endforeach {{ __('Total Values') }} @endslot @slot('table_body') {{-- New Product Item Sales Target --}} {{ __('New Product '.$name.' Sales Target') }} @foreach ($new_products_totals as $date => $value)
Warning: Undefined variable $date in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 196

Warning: Undefined variable $value in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 196

Warning: Undefined variable $date in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 196
{{ number_format($value) }} @endforeach
Warning: Undefined variable $new_products_totals in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 199

Fatal error: Uncaught TypeError: array_sum(): Argument #1 ($array) must be of type array, null given in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php:199 Stack trace: #0 /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php(199): array_sum(NULL) #1 {main} thrown in /home/cfostools/public_html/cfostools.evoqas.com/resources/views/client_view/forecast/products_allocations.blade.php on line 199