@extends('layouts.admintemplate') @section('content')
Peramalan Penjualan
Tanggal Awal : {{ tanggal($tanggal_awal) }}
Tanggal Akhir : {{ tanggal($tanggal_akhir) }}
Level / Periode : {{ tanggal($periode) }}
@foreach ($moving_averages as $key => $value) @endforeach
Bulan Total Penjualan Moving Average ({{ $periode }} Bulan) MAPE (%) Akurasi
{{ date('M Y', strtotime($value['tanggal'])) }} {{ isset($data_penjualan[$key + ($periode - 1)]['jumlahtotal']) ? $data_penjualan[$key + ($periode - 1)]['jumlahtotal'] : '-' }} {{ $value['rata2'] }} {{ $value['error'] !== null ? $value['error'] . '%' : '-' }} {{ $value['error'] !== null ? mape($value['rata2']) : '-' }}

Mean Absolute Percentage Error (MAPE): {{ round($mape, 2) }}%

Grafik Peramalan
@endsection