@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])

Form Penerimaan Barang


@csrf

@php $statusClass = ''; $statusText = ''; if ($h->status === 'E') { $statusClass = 'bg-info text-white'; $statusText = 'Entry'; } elseif ($h->status === 'F') { $statusClass = 'bg-success text-white'; $statusText = 'Finish'; } else { $statusClass = 'bg-secondary text-white'; $statusText = $h->status ?? '-'; } @endphp


Note : (*) Wajib diisi.
{{-- List Detail --}}

Detail


{{--
--}}
@foreach ($detail as $d) @endforeach
Item Type Uraian Barang ID Barang Qty Satuan Jenis Asset Kode SAP Catatan
@php $assetMap = [ 0 => [ 'href' => '/msmntr/add', 'class' => 'prefill-msmntr', 'module' => 'msmntr', ], 1 => [ 'href' => '/msprin/add', 'class' => 'prefill-msprin', 'module' => 'msprin', ], 2 => [ 'href' => '/msscan/add', 'class' => 'prefill-msscan', 'module' => 'msscan', ], 3 => [ 'href' => '/mscpus/add', 'class' => 'prefill-mscpus', 'module' => 'mscpus', ], 4 => [ 'href' => '/mstswt/add', 'class' => 'prefill-mstswt', 'module' => 'mstswt', ], ]; $conf = $assetMap[(int) ($d->asset ?? 0)] ?? [ 'href' => '/trpnbg/add', 'class' => 'prefill-default', 'module' => 'default', ]; @endphp @if (filled($d->kode_sap)) {{ $d->kode_sap }} @else - @endif
@endsection