@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @if (empty($selected_detail_month)) @include('layouts.navbars.auth.topnav', ['title' => '']) @endif
Tidak ada material yang dipilih.
@endif| @foreach ($material_trend as $row) | {{ $row['month_name'] }} | @endforeachTotal |
|---|---|---|
| Target Atas | @foreach ($material_trend as $row){{ number_format($row['target_atas'], 2) }}% | @endforeach|
| Pencapaian | @foreach ($material_trend as $row) @php $out = $row['pencapaian'] !== null && ($row['pencapaian'] < $row['target_bawah'] || $row['pencapaian'] > $row['target_atas']); @endphp{{ $row['pencapaian'] !== null ? number_format($row['pencapaian'], 2) . '%' : '-' }} | @endforeach|
| Target Bawah | @foreach ($material_trend as $row){{ number_format($row['target_bawah'], 2) }}% | @endforeach|
| @if ($hasMultiple) @else Total GR (Kg) @endif | @php $sumGR = 0; @endphp @foreach ($material_trend as $row) @php $sumGR += $row['total_gr']; @endphp{{ number_format($row['total_gr']) }} | @endforeach{{ number_format($sumGR) }} |
| {{ $matName }} | @foreach ($material_trend as $row) @php $mkey = $row['month_key'] ?? ($row['month'] ?? $row['month_name']); $qty = optional($grIndexByMonth[$mkey] ?? collect())->get($matnr)[ 'qty' ] ?? null; @endphp{{ $qty !== null ? number_format($qty) : '-' }} | @endforeach|
| @if ($hasMultiple) @else Total GI (Kg) @endif | @php $sumGI = 0; @endphp @foreach ($material_trend as $row) @php $sumGI += $row['total_gi']; @endphp{{ number_format($row['total_gi']) }} | @endforeach{{ number_format($sumGI) }} |
| {{ $matName }} | @foreach ($material_trend as $row) @php $mkey = $row['month_key'] ?? ($row['month'] ?? $row['month_name']); $qty = optional($giIndexByMonth[$mkey] ?? collect())->get($matnr)[ 'qty' ] ?? null; @endphp{{ $qty !== null ? number_format($qty) : '-' }} | @endforeach|
| @if ($hasMultiple) @else Stock @endif | @php $sumStock = 0; @endphp @foreach ($material_trend as $row) @php $sumStock += $row['stock']; @endphp{{ number_format($row['stock'], 2) }} | @endforeach{{ number_format($sumStock, 2) }} |
| {{ $matName }} | @foreach ($material_trend as $row) @php $mkey = $row['month_key'] ?? ($row['month'] ?? $row['month_name']); $qty = optional($stockIndexByMonth[$mkey] ?? collect())->get( $matnr, )['qty'] ?? null; @endphp{{ $qty !== null ? number_format($qty, 2) : '-' }} | @endforeach