@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'Pengajuan Kelengkapan Dokumen']) @php $documentTypes = [ 'tds' => [ 'label' => 'TDS', 'description' => 'Technical Data Sheet', 'required' => true, 'icon' => 'fas fa-file-alt', ], 'msds' => [ 'label' => 'MSDS', 'description' => 'Material Safety Data Sheet', 'required' => true, 'icon' => 'fas fa-shield-alt', ], 'sertifikat_halal' => [ 'label' => 'Sertifikat Halal', 'description' => 'Pilih dokumen ini jika tersedia', 'required' => false, 'icon' => 'fas fa-certificate', ], 'halal_declaration' => [ 'label' => 'Halal Declaration', 'description' => 'Alternatif jika sertifikat halal tidak tersedia', 'required' => false, 'icon' => 'fas fa-file-signature', ], 'flowchart' => [ 'label' => 'Flowchart', 'description' => 'Diagram alur proses produksi', 'required' => false, 'icon' => 'fas fa-project-diagram', ], 'others' => [ 'label' => 'Dokumen Lainnya', 'description' => 'Dokumen pendukung tambahan', 'required' => false, 'icon' => 'fas fa-paperclip', ], ]; @endphp
@include('components.alert')
Kembali
@csrf {{-- Ringkasan tugas --}}

Pengajuan Dokumen Material

{{ $task->material->nama_material ?? '-' }}

{{ $task->material->kode_material ?? '-' }}
Supplier
{{ $task->supplier->nama_vendor ?? '-' }}
PIC Supplier
{{ $task->nama_pic ?? '-' }}
Ketentuan File
PDF, maksimal 5 MB
{{-- Kartu unggah --}}
Unggah Dokumen

Pilih file PDF sesuai jenis dokumennya

@foreach ($documentTypes as $type => $config)
{{ $config['label'] }} @if ($config['required']) * @endif
{{ $config['description'] }}
@if ($config['required']) Wajib @else Opsional @endif
Dokumen {{ $config['label'] }} wajib dipilih sebelum submit.
@error($type . '_file')
{{ $message }}
@enderror
@endforeach

* Wajib dilengkapi sebelum submit

@endsection @push('js') @endpush