@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
@csrf @method('PUT') {{-- VENDOR INFORMATION --}}

Vendor Information


{{-- Vendor Code (Readonly) --}}
Kode tidak dapat diubah
{{-- Status --}}
@if($list->status == 'Pending') Pending @elseif($list->status == 'Proposed') Proposed @elseif($list->status == 'Approved') Approved @elseif($list->status == 'Rejected') Rejected @elseif($list->status == 'Finish') Finish @endif
{{-- Company Scope - Radio Style --}}
@foreach($company_scopes as $scope)
company_scope) && $list->company_scope == $scope->value) checked @endif required>
@endforeach
@error('company_scope')

{{ $message }}

@enderror
{{-- Vendor Name --}}
@error('name')

{{ $message }}

@enderror
{{-- Corp --}}
@error('corp')

{{ $message }}

@enderror
{{-- Company Specification --}}
@error('company_spec_id')

{{ $message }}

@enderror
{{-- Office Address 1 --}}
0/60 @error('office_address1')

{{ $message }}

@enderror
{{-- Office Address 2 --}}
0/40 @error('office_address2')

{{ $message }}

@enderror
{{-- Office Address 3 --}}
0/40 @error('office_address3')

{{ $message }}

@enderror
{{-- Post Code --}}
0/10 @error('post_code')

{{ $message }}

@enderror
{{-- Factory Address --}}
0/100 @error('factory_address')

{{ $message }}

@enderror
{{-- Warehouse Address --}}
0/100 @error('warehouse_address')

{{ $message }}

@enderror
{{-- Country --}}
@error('country_id')

{{ $message }}

@enderror
{{-- Region --}}
@error('region_id')

{{ $message }}

@enderror
{{-- Office City --}}
@error('office_city_id')

{{ $message }}

@enderror
{{-- Office Telephone --}}
@error('office_telp')

{{ $message }}

@enderror
{{-- Office Mobile --}}
@error('office_mobile')

{{ $message }}

@enderror
{{-- Office Fax --}}
@error('office_fax')

{{ $message }}

@enderror
{{-- Office Email --}}
@error('office_email')

{{ $message }}

@enderror
{{-- Payment Term --}}
@error('payment_term_id')

{{ $message }}

@enderror
{{-- Vendor Group --}}
Auto-filled based on company scope @error('vendor_group')

{{ $message }}

@enderror
{{-- Rec Account --}}
Auto-filled based on company scope @error('rec_account')

{{ $message }}

@enderror
{{-- Plan Group --}}
Auto-filled based on company scope @error('plan_group')

{{ $message }}

@enderror
{{-- Schema Group --}}
Auto-filled based on company scope @error('schema_group')

{{ $message }}

@enderror
{{-- Currency --}}
{{-- Hidden input will be added by JavaScript when scope is Local --}} @if(old('currency_id', $list->currency_id)) @endif Auto-filled based on company scope @error('currency_id')

{{ $message }}

@enderror
{{-- Note --}}
@error('note')

{{ $message }}

@enderror
{{-- Classification --}}
@error('classification')

{{ $message }}

@enderror
{{-- SAP Status --}}
@if($list->sap_status == 'Belum Upload') Belum Upload @elseif($list->sap_status == 'Proses') Proses @elseif($list->sap_status == 'Sudah Upload') Sudah Upload @elseif($list->sap_status == 'Update PPN') Update PPN @elseif($list->sap_status == 'Update') Update @endif
{{-- CONTACT PERSONS --}}
Contact Persons (Optional)
*Pilih pada kolom SAP untuk menentukan contact yang akan diupload ke SAP
{{-- Empty State --}}

No contact persons added yet.

{{-- Table Container --}}
@php $contactsData = old('contacts') ? collect(old('contacts'))->map(fn($c) => (object)$c) : (isset($contacts) ? $contacts : collect()); @endphp @foreach($contactsData as $ci => $contact) @endforeach
SAP
Upload
Full Name Position Telephone Mobile Email Action
is_sap ?? 0) ? 'checked' : '' }} onchange="handleSapRadioChange({{ $ci }})" title="Pilih contact yang akan diupload ke SAP"> {{ ($contact->is_sap ?? 0) ? 'SAP' : '' }}
{{-- DIRECTORS --}}
Directors / Commissioners (Optional)
{{-- Empty State --}}

No directors added yet.

{{-- Table Container --}}
@php $directorsData = old('directors') ? collect(old('directors'))->map(fn($d) => (object)$d) : (isset($directors) ? $directors : collect()); @endphp @foreach($directorsData as $di => $director) @endforeach
Full Name NIK Position Telephone Email Action
{{-- LEGAL DOCUMENTS --}}

Legal Documents


{{-- SIUP/NIB Section --}}
SIUP / NIB (Nomor Induk Berusaha)
{{ $list->siup_nib_no ? strlen($list->siup_nib_no) : 0 }}/50 @error('siup_nib_no')

{{ $message }}

@enderror
@error('siup_nib_releaseddate')

{{ $message }}

@enderror
@error('siup_nib_enddate')

{{ $message }}

@enderror
{{-- NPWP Section --}}
NPWP (Nomor Pokok Wajib Pajak)
{{ $list->npwp_no ? strlen($list->npwp_no) : 0 }}/50 @error('npwp_no')

{{ $message }}

@enderror
@error('npwp_releaseddate')

{{ $message }}

@enderror
@error('npwp_enddate')

{{ $message }}

@enderror
{{-- PKP Section --}}
PKP (Pengukuhan Pengusaha Kena Pajak)
{{ $list->pkp_no ? strlen($list->pkp_no) : 0 }}/50 @error('pkp_no')

{{ $message }}

@enderror
@error('pkp_releaseddate')

{{ $message }}

@enderror
@error('pkp_enddate')

{{ $message }}

@enderror
{{-- BANK ACCOUNTS --}}
Bank Accounts (Optional)
{{-- Empty State --}}

No bank accounts added yet.

{{-- Table Container --}}
@php $banksData = old('banks') ? collect(old('banks'))->map(fn($b) => (object)$b) : (isset($banks) ? $banks : collect()); @endphp @foreach($banksData as $bi => $bank) @endforeach
Bank Name Address Account Number Account Holder Account Name Action
{{-- QUALITY ENVIRONMENT --}}
Quality Environment (Optional)

Select applicable quality environments and provide details

@php $hasOldQE = old('quality_environments') !== null; $oldQEData = old('quality_environments') ?? []; $checkedQEIds = $hasOldQE ? collect($oldQEData)->pluck('quality_environment_id')->map(fn($id) => (int)$id)->toArray() : (isset($qualityEnvs) ? $qualityEnvs->pluck('quality_environment_id')->toArray() : []); @endphp {{-- Checkbox --}}

Select quality environments to add:

@foreach($quality_environments as $qe)
id, $checkedQEIds) ? 'checked' : '' }}>
@endforeach
{{-- Table --}}
@if($hasOldQE) @foreach($oldQEData as $qi => $qeOld) @php $qeName = \DB::table('ms_quality_environment') ->where('id', $qeOld['quality_environment_id']) ->value('name'); $isStandardLainnya = $qeName === 'Standard Lainnya'; @endphp @endforeach @else @if(isset($qualityEnvs) && $qualityEnvs->count() > 0) @foreach($qualityEnvs as $qi => $qe) @php $qeName = \DB::table('ms_quality_environment')->where('id', $qe->quality_environment_id)->value('name'); $isStandardLainnya = $qeName === 'Standard Lainnya'; @endphp @endforeach @endif @endif
Quality Environment Version Document
{{ $qeName }} @if($isStandardLainnya) @endif Re-upload jika ingin mengubah dokumen | PDF, JPG, JPEG, PNG (Max 5120 KB)
{{ $qeName ?? $qe->other_quality_environment }} @if($isStandardLainnya && $qe->other_quality_environment) ({{ $qe->other_quality_environment }}) @endif
@if($isStandardLainnya) @endif
@if($qe->document) View Current File @endif PDF, JPG, JPEG, PNG (Max 5120 KB)
{{-- AGREEMENT DOCUMENT --}}

Agreement Document


@if(!empty($list->agreement_document) && is_array($list->agreement_document)) @foreach($list->agreement_document as $index => $doc)
File {{ $loop->iteration }} {{-- Input ini yang memberi tahu Controller file apa saja yang masih disimpan --}} {{-- Tombol hapus (Muncul saat klik Edit) --}}
@endforeach @else

No document uploaded

@endif

Maximum Size per file: 20480 KB

Format: pdf, zip, 7z (Choose one or more files)

@error('agreement_document')

{{ $message }}

@enderror
@foreach($approvers as $approver)
approver ?? '') == $approver->username ? 'checked' : '' }} required>
@endforeach
@error('approver')

{{ $message }}

@enderror
{{-- Hidden Data for JavaScript --}} @endsection @php $contactIndex = isset($contacts) && $contacts->count() > 0 ? $contacts->count() : 0; $directorIndex = isset($directors) && $directors->count() > 0 ? $directors->count() : 0; $bankIndex = isset($banks) && $banks->count() > 0 ? $banks->count() : 0; $qualityEnvironmentIndex = isset($qualityEnvs) ? $qualityEnvs->count() : 0; $currencyData = $currencies->toArray(); $qualityEnvironmentsMap = isset($quality_environments) ? $quality_environments->pluck('name', 'id')->toArray() : []; @endphp @push('js') @endpush