@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content')
Kode : {{ $data->code }}
QAD Code : {{ $data->qad_code }}
Nama : {{ $data->name }}
Penanggung Jawab : {{ $data->pic ?: '-' }}
Telepon PJ : @if($data->pic_phone) {{ $data->pic_phone }} @else - @endif
Email PJ : @if($data->pic_email) {{ $data->pic_email }} @else - @endif
Email Notifikasi Shipment : @if($data->notify_email_shipment) @php $emails = array_map('trim', explode(',', $data->notify_email_shipment)); @endphp @foreach($emails as $email) @if(!empty($email)) {{ $email }} @endif @endforeach @else - @endif
Alamat : {{ $data->address}}
Batas Waktu Edit SPB : {{ $data->spb_edit_deadline ?? '11:00' }} (H+1)
@if($data->inactive_date) @endif
Status : @if($data->status == 'Aktif') {{ $data->status }} @else {{ $data->status }} @endif
Tanggal Nonaktif : {{ $data->inactive_date }}
Dibuat Oleh : {{ $data->creator->fullname ?? 'System' }} ({{ $data->created_at->format('d M Y, H:i') }})
Diubah Oleh : {{ $data->modificator->fullname ?? '-' }} ({{ $data->updated_at ? $data->updated_at->format('d M Y, H:i') : '-' }})
Total Item : {{ $data->storeRawMaterials->where('delete_flag', 0)->count() }} item
@if($data->storeDcs && $data->storeDcs->where('delete_flag', 0)->count() > 0)

Distribution Centers ({{ $data->storeDcs->where('delete_flag', 0)->count() }} DC)

@foreach($data->storeDcs->where('delete_flag', 0) as $index => $storeDc) @endforeach
No Period Group Doctype Nama DC
{{ $loop->iteration }} {{ $storeDc->period_group ?: '-' }} @if($storeDc->dc) @if($storeDc->dc->doctype == 'DCKP') {{ $storeDc->dc->doctype }} @else {{ $storeDc->dc->doctype }} @endif @else - @endif {{ $storeDc->dc->name ?? '-' }}
@endif
@method('delete') @csrf
@endsection