@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
| Supplier | Code | Dates | Dosing Price | Remark | Status |
|---|---|---|---|---|---|
| @if ($index === 0) {{ $row->supplier_to }} Ext. Memo: {{ $row->ext_memo }} @endif | {{-- Sample Code --}}{{ $row->code }} | {{-- Dates --}}S: {{ $row->send_date ? date('d/m/y', strtotime($row->send_date)) : '-' }} R: {{ $row->receive_date ? date('d/m/y', strtotime($row->receive_date)) : '-' }} | {{-- Pricing --}}Dosage: {{ $row->dosage }}% {{ $row->currency }} {{ number_format($row->dosing_price, 2) }} / Kg | {{ $row->remark ?? '-' }} | {{-- Status --}}{{-- --}} @php $badgeClass = match ( $row->status ) { 'accepted' => 'bg-success', // Hijau 'rejected' => 'bg-danger', // Merah 'entry' => 'bg-secondary', // Abu-abu default => 'bg-primary', // Biru (Default) }; @endphp {{ strtoupper($row->status) }} |