@extends('layouts.user.main') @section('title', 'Stocktakes') @section('styles') {{-- Link to external stylesheet --}} @endsection @section('contents')
{{-- Overview Report --}}
Overview
Scanner Activity Per Area
Item Distribution
Transmission Activity / Status
{{-- Top Summary Report --}}
Top Summary
{{-- PDF Status Alert for Top Summary --}}
Rack Number Batch Brand Total Qty Personnel
{{-- SKU Summary Report --}}
SKU Summary
Store Area Brand Item Code Qty
{{-- SKU by Rack Report --}}
SKU Summary by Rack
Store Area Brand Rack Batch Item Code Qty
{{-- Prooflist Report --}}
Prooflist
Seq # Brand Item Code Description Qty Scanner
{{-- Invalid SKU Report --}}
List of Invalid SKU
{{--
--}}
Rack Batch Area Item Code Qty
{{-- Rack Discrepancy Report --}}
Rack Discrepancy
Area Rack Batch Actual Count Precount Variance
{{-- Duplicated Racks Report --}}
Duplicated Racks
Area Rack Total Stocktake Ref Occurrence
{{-- Verifier Report --}}
Verifier
Area Rack Actual Count Verifier Count Variance Status
{{-- Rack Checker Report --}}
Rack Checker
{{-- Upload CSV Section --}}
Upload CSV File
{{-- Success/Error Messages --}} @if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif {{-- Upload Details (shown after successful upload) --}} @if(session('upload_details')) @php $details = session('upload_details'); $details['context'] = 'upload'; $details['view'] = 'prooflist'; @endphp {{-- Hidden element to pass data to JavaScript --}} {{-- ✅ Add id="uploadSessionDetails" so JS can find it --}}
Last Upload Summary
{{-- PDF Generation Status Alert --}}
Stocktake Ref: #{{ $details['stocktakes_ref'] }}
Scanner Code: {{ $details['scanner_code'] }}
Area: {{ $details['area'] }}
Rack Number: {{ $details['rack_num'] }}

{{ $details['total'] }}

Total Records

{{ $details['valid'] }}

Valid Articles

{{ $details['invalid'] }}

Invalid Articles
@if(!empty($details['invalid_articles']))
Invalid Articles:
@foreach($details['invalid_articles'] as $article) {{ $article }} @endforeach
@endif
@endif {{-- Upload Progress Bar (Optional - if you want to show upload progress) --}} {{-- Upload Form --}}
Upload Stocktake Data
Select your CSV file to upload stocktake data
@csrf {{-- CSV File --}}
{{-- File Preview --}} @error('csv_file')
{{ $message }}
@enderror
Max file size: 10MB. Accepted formats: .csv, .txt
The CSV file must contain: stocktakes_ref, scanner_code, area, rack_num, stock_zone, sap_article, qty
{{-- Submit Button --}}
{{-- Add this script in your @section('scripts') to set the PDF check URL --}} {{-- Rack Registry Section --}}
Rack Registry
Area Batch Total Qty Action
@endsection @section('scripts') {{-- Chart.js must load first --}} {{-- Chart initialization --}} {{-- Report functions must load before navigation --}} {{-- Upload Manager - NEW FILE --}} {{-- Navigation loads after upload manager --}} {{-- Other report action scripts --}} {{-- Set the PDF check URL --}} @endsection