@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @php $batchReportRoles = (array) ($user_login->roles_list ?? []); $isBatchAdmin = !empty($is_msjit) || in_array('admins', $batchReportRoles, true) || in_array('admbat', $batchReportRoles, true); $isAdminGedung = !empty($is_admin_gedung) || (empty($is_msjit) && in_array('admbat', $batchReportRoles, true)); $showOrderDropdown = $isAdminGedung || !empty($is_msjit); @endphp
{{-- Card 1: Top Synchronize Row (Date From, Date To, Gedung for MSJIT, Button Klik untuk update syncron) --}}
{{ !empty($is_msjit) ? 'Semua Gedung (Admin MIS)' : ($gedung_user->nama_gedung ?? 'Gedung belum dikonfigurasi') }}
{{-- Top Header Status Row --}}
Last Update: {{ $last_log ? \Carbon\Carbon::parse($last_log->created_at)->format('d F Y, H:i') : '04 Agustus 2026, 15:30' }}
{{-- Alert Info Note (Permanent Solid Box) --}}
Catatan: Sebelum klik tombol Excel, Print, PDF, Execute, dan Preview harap isi field filter terlebih dahulu.
{{-- Card 3: Print Report Form & Buttons --}}
Print Report
{{-- Document Actions (Excel, PDF, Print, Preview) --}}
{{-- Card 2: Database Selection Form (Single Clean Fields, Inline Pill Tag Grouping) --}}
Database Selection
@csrf
{{-- Row 1: Production Date Range --}}
s/d
{{-- Row 2: No Order (Multiple Choice Combobox Dropdown + Input Manual dengan Pembungkus Pill Standar MSJ) --}}
@if (!empty($showOrderDropdown)) @else @php $rawSelected = old('order_no', request('order_no', request('orders', ''))); $orderValText = is_array($rawSelected) ? implode(', ', $rawSelected) : $rawSelected; @endphp @endif
{{-- Row 3: Resource (Single Field) --}}
{{-- Row 4: Material (Single Field) --}}
{{-- Row 5: Batch (Single Field) --}}
{{-- Row 6: Sold-to Party (Single Field) --}}
{{-- Radio Mode: Only Batch Data / Order Summary --}}

@if ($isBatchAdmin) @endif
@endsection @push('css') @endpush @push('js') @endpush