@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => '']) @php $currentRole = auth()->user()->idroles ?? (auth()->user()->role ?? null); // Dashboard utama Purchase Report $canSeeFullDashboard = in_array($currentRole, ['admins', 'purchs']); // Monitoring PO Purchasing hanya untuk admpur $canSeeMonitoringPo = $currentRole === 'admpur'; @endphp @if (session('success'))
Period
Per Material Type: ZRAW, ZSUP, ZPCK
| Material Type | Curr | @foreach ($ksl_months as $m){{ $m['label'] }} | @endforeach
|---|---|---|
| {{ $mtart }} | IDR | @foreach ($ksl_months as $m) @php $monthKey = $m['key']; $cellData = $precomputedCells[$mtart][$monthKey] ?? [ 'avg12' => '0', 'avgLastYear' => '0', ]; @endphp{!! $cellData['avg12'] !!} | @endforeach
| Total | IDR | @foreach ($ksl_months as $m){{ number_format($ksl_monthly_totals[$m['key']] ?? 0, 0, ',', '.') }} | @endforeach
Memuat data...
List Transaksi perubahan Account
| PO | Account Name | Text | Amount | Curr |
|---|---|---|---|---|
| @if ($poNo && $poNo !== '-') @else - @endif | {{-- Account Name Kredit -> Debit --}}
{{ data_get($credit, 'racct_name', '-') }}
{{ data_get($debit, 'racct_name', '-') }}
|
{{-- Text Debit --}}
{{ data_get($debit, 'sgtxt', '-') }} | {{-- Amount --}}{{ $fmtAmount($amount) }} | {{-- Currency --}}{{ $curr }} |
| Total Amount | {{ $fmtAmount($doc['total_debit'] ?? 0) }} | {{ $mainCurr }} | ||
| Document Type | Wait Approval PR | Outstanding PR | Wait Approval PO | Outstanding PO | ||
|---|---|---|---|---|---|---|
| Jumlah | With Code | Non Code | Purch | Director | PO / Line | |
| {{ $bsart }} |
{{ $prWait['jum'] }}
{{ $prWait['days'] }} Hari
|
{{ $prCode['jum'] }}
{{ $prCode['days'] }} Hari
|
{{ $prNon['jum'] }}
{{ $prNon['days'] }} Hari
|
{{ $poPurch['po'] }}
{{ $poPurch['line'] }} Line
|
{{ $poDir['po'] }}
{{ $poDir['line'] }} Line
|
{{ $poOs['po'] }} PO
{{ $poOs['line'] }} Line
|
| TOTAL |
{{ $totalWaitPr }}
{{ $totalWaitPrDays }} Hari
|
{{ $totalPrCode }}
{{ $totalPrCodeDays }} Hari
|
{{ $totalPrNon }}
{{ $totalPrNonDays }} Hari
|
{{ $totalPoPurchPo }}
{{ $totalPoPurchLine }} Line
|
{{ $totalPoDirPo }}
{{ $totalPoDirLine }} Line
|
{{ $totalPoOsPo }} PO
{{ $totalPoOsLine }} Line
|