@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
| No | Date | Memo No | Supplier | Status | Action |
|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ date('d/m/Y', strtotime($item->date)) }} | {{ $item->memo_no }} | {{ $item->supplier_name ?? '-' }} | @php $status = $item->status ?? 'entry'; $statusLabels = [ 'entry' => 'Entry', 'sent' => 'Sent', 'received' => 'Received', 'completed' => 'Completed', 'underreview' => 'Under Review', ]; $statusColors = [ 'entry' => 'secondary', 'sent' => 'info', 'received' => 'warning', 'completed' => 'success', 'underreview' => 'primary', ]; $label = $statusLabels[$status] ?? ucfirst($status); $color = $statusColors[$status] ?? 'secondary'; @endphp {{ $label }} | @php $status = $item->status ?? 'entry'; $isEditDisabled = $status !== 'entry'; $canDelete = $status === 'entry'; @endphp |