@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'Detail Form Permintaan Pembelian'])
Kembali @if ($header->status === 'E') @endif @if ($header->status === 'A' || $header->status === 'F' || $header->status === 'P') @endif
Form Permintaan Pembelian (PP) Alat Penunjang

ID: {{ $header->idtrans }}

Department: {{ $header->department }}

Tanggal: {{ \Carbon\Carbon::parse($header->date)->translatedFormat('d F Y') }}

@if ($header->status === 'A' || $header->status === 'P') @endif @if ($header->status === 'A' || $header->status === 'P') @endif @foreach ($details as $index => $detail) @php // Tentukan kelas CSS berdasarkan status $rowClass = ''; if ($detail->status === 'F') { $rowClass = 'table-success'; // Hijau untuk "Diterima" } elseif ($detail->status === 'C') { $rowClass = 'table-danger'; // Merah untuk "Cancel" } @endphp @if ($header->status === 'A' || $header->status === 'P') @endif @if ($header->status === 'A' || $header->status === 'P') @endif @endforeach
ActionNo Type Barang Uraian Barang Jenis Jumlah Keperluan Tgl Dibutuhkan Contoh Barang Keterangan UrgencyKode AsetStatus
QTY Satuan
@if (!in_array($detail->status, ['F', 'C', 'CL'])) @if (!in_array($detail->status, ['P'])) @endif @endif
{{ $loop->iteration }} {{ $detail->tbname }} {{ $detail->uraian }} {{ $detail->type }} {{ $detail->quantity }} {{ $detail->satuan }} {{ $detail->purpose }} {{ $detail->required_date ? \Carbon\Carbon::parse($detail->required_date)->translatedFormat('d F Y') : '' }} @if ($detail->sample_available == 1) Ada @else Tidak Ada @endif {{ $detail->notes }}
@if ($detail->urgency === '1') @else @endif
type_barang != '2') disabled @endif>
@if ($detail->status === 'F') Finish @elseif ($detail->status === 'C') Cancel @elseif ($detail->status === 'P') Partial @elseif($detail->status === 'E') Entry @elseif($detail->status === 'CL') Close @endif

Diminta oleh,


(________________________)

Mengetahui,


(________________________)

Kepala Dept Ybs.

Diterima oleh,


(________________________)

HRGA

Note: Bagi user yang kurang memahami mengenai spesifikasi barang yang direquest, dapat memberikan penjelasan langsung kepada bagian Purchasing.
* Coret yang tidak perlu

@endsection