@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content') {!! $variables['judul'] !!} Mengupload dan memproses file... Hasil Upload @csrf Tahun * @for($year = date('Y'); $year <= date('Y') + 2; $year++) {{ $year }} @endfor Bulan * @for($month = 1; $month <= 12; $month++) {{ date('F', mktime(0, 0, 0, $month, 1)) }} @endfor File Excel * Unduh Template Pilih file... Unggah Forecast Format yang didukung: .xlsx, .xls, .csv (Maks: 10MB) Instruksi Upload Unduh template terlebih dahulu untuk melihat format yang diperlukan Struktur Excel: Baris 1: Column header (store_code, raw_material_code, raw_material_name, uom) + Section header (fc, fc, ..., tsm, tsm, ...) Baris 2: Date header (format: d/m, contoh: 4/3 = tanggal 4 bulan 3) Baris 3+: Data rows Section FC (Forecast): Wajib diisi untuk semua raw material Section TSM (Target Sisa Malam): Opsional, jika tidak diisi atau 0 maka TSM tidak akan diupdate Dukungan multi-store: Satu file bisa berisi data untuk beberapa store Pengelompokan otomatis: Sistem akan otomatis mengelompokkan data per store dan membuat header forecast terpisah Tanggal bebas: Tidak dibatasi maksimal 31 hari, sesuaikan dengan periode yang dipilih Tidak boleh backdate: Forecast hanya bisa diupload untuk bulan berjalan atau bulan mendatang Validasi akses: User harus punya akses ke semua store yang ada di file upload Upsert otomatis: Jika forecast sudah ada untuk suatu store, data akan di-upsert (insert baru atau update yang sudah ada) Kosongkan sel atau isi 0 untuk tanggal yang tidak ada forecast/target Ukuran file maksimal: 10MB Format yang didukung: .xlsx, .xls, .csv List @endsection
Mengupload dan memproses file...