@extends('layouts/base_view') @section('title') {!! $variables['header_routes'] !!} @endsection @section('content')

{{ $variables['judul'] }}

@if($variables['has_conversion']) Ubah @else @endif List
Kode : {{ $data->code }}
Tipe : {{ $data->tipe }}
Nama : {{ $data->name }}
Deskripsi : {{ $data->description ?: '-' }}
Tipe DOI : {{ $data->tipe_doi }}
Seksi : {{ $data->seksi ? $data->seksi->code . ' - ' . $data->seksi->name : '-' }}
Bagian Dari FSTR : @if($data->is_component_fstr) Ya @else Tidak @endif
UOM Base : {{ $data->uom ?: '-' }}
UOM Pakai : {{ $data->uom_pakai ?: '-' }}
Kubikasi : {{ $data->kubikasi ? number_format($data->kubikasi, 5) . ' m³' : '-' }}
Konversi FSTR/SUB ke Item : {{ number_format($data->conversion_factor_to_item ?? 1, 4) }}
Dibuat Oleh : {{ $data->creator->fullname ?? 'System' }} ({{ $data->created_at ? $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') : '-' }})
SPB Rules
SPB ROP (%) : {{ $data->percentage_spb_rop ?? 0 }}
SPB Over Qty (%) : {{ $data->percentage_spb_over_qty ?? 0 }}
LSM Index : {{ $data->lsm_index ?? 0 }}

Kolom Adjustment:

@if($data->adj_restan_flag) Restan @else Restan @endif @if($data->adj_extras_flag) Extras @else Extras @endif @if($data->adj_ringkas_flag) Ringkas @else Ringkas @endif @if($data->adj_selisih_flag) Selisih @else Selisih @endif
Hijau = aktif, Abu = tidak aktif
@if(!$variables['has_conversion'])
Belum ada data konversi. Buat di Master Item Conversion.
@endif
@if($data->components && $data->components->count() > 0)

FSTR Olahan / Menu Olahan ({{ $data->components->count() }} item)

@foreach($data->components as $index => $component) @endforeach
No Kode Nama Tipe UOM Input LSM Qty
{{ $index + 1 }} @if($component->component) {{ $component->component->code }} @else - @endif {{ $component->component->name ?? '-' }} {{ $component->component->tipe ?? '-' }} {{ $component->component->uom ?? '-' }} @if($component->input_lsm_flag) Ya @else Tidak @endif {{ number_format($component->qty, 5) }}
@endif @if($data->substitutions && $data->substitutions->count() > 0)

Substitusi ({{ $data->substitutions->count() }} item)

@foreach($data->substitutions as $index => $substitution) @endforeach
No Kode Nama Tipe
{{ $index + 1 }} @if($substitution->substitution) {{ $substitution->substitution->code }} @else - @endif {{ $substitution->substitution->name ?? '-' }} {{ $substitution->substitution->tipe ?? '-' }}
@endif

Konversi per DC {{ $data->conversions->count() }}

@if($data->conversions->count() > 0)
@foreach($data->conversions as $conv) @endforeach
DC UOM Kirim Faktor Kirim → Utuh UOM Utuh Faktor Utuh → Pakai
{{ $conv->dc ? $conv->dc->code . ' - ' . $conv->dc->name : 'DC #' . $conv->dc_id }} {{ $conv->uom_kirim ?: '-' }} {{ $conv->conversion_factor_kirim_utuh ? number_format($conv->conversion_factor_kirim_utuh, 5) : '-' }} {{ $conv->uom_utuh ?: '-' }} {{ $conv->conversion_factor_utuh_pakai ? number_format($conv->conversion_factor_utuh_pakai, 5) : '-' }}
@else
Belum ada data konversi. Buat di Master Item Conversion.
@endif
@endsection