@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content') {!! $variables['judul'] !!} @csrf Kode Store * Kode toko unik (maks 20 karakter) id ? 'readonly' : '' }}> @if ($errors->has('code')) {{ $errors->first('code') }} @endif QAD Code * Kode QAD 4 karakter (wajib diisi) @if ($errors->has('qad_code')) {{ $errors->first('qad_code') }} @endif Nama * @if ($errors->has('name')) {{ $errors->first('name') }} @endif Penanggung Jawab * @if ($errors->has('pic')) {{ $errors->first('pic') }} @endif Telepon PJ * @if ($errors->has('pic_phone')) {{ $errors->first('pic_phone') }} @endif Email PJ * @if ($errors->has('pic_email')) {{ $errors->first('pic_email') }} @endif Batas Edit SPB * Batas waktu edit SPB @if ($errors->has('spb_edit_deadline')) {{ $errors->first('spb_edit_deadline') }} @endif Alamat * {{ old('address', $data->address ?? '') }} @if ($errors->has('address')) {{ $errors->first('address') }} @endif Email Notifikasi Shipment Pisahkan multiple email dengan koma (,) @if ($errors->has('notify_email_shipment')) {{ $errors->first('notify_email_shipment') }} @endif Distribution Centers (DC) Period Group DC * @php $existingMap = []; if ($data->id && isset($data->storeDcs)) { foreach ($data->storeDcs->where('delete_flag', 0) as $sdc) { $existingMap[$sdc->period_group] = $sdc->dc_id; } } @endphp @foreach($variables['periodGroups'] as $pg) {{ $pg->code }} @if($pg->description) {{ $pg->description }} @endif -- Tidak Dimapping -- @foreach($variables['dcs'] as $dc) code] ?? null) == $dc->id ? 'selected' : '' }}> {{ $dc->doctype }} - {{ $dc->name }} @endforeach @endforeach Simpan List @endsection