{{ __('Memo') }}

{{ __('Daftar Memo') }}

{{ __('Create Memo') }}
@forelse ($documents as $doc) @php $statusMap = [ 1 => ['label' => __('Draft'), 'class' => 'badge-draft'], 2 => ['label' => __('Sent'), 'class' => 'badge-pending'], 3 => ['label' => __('Signed'), 'class' => 'badge-signed'], 4 => ['label' => __('Final'), 'class' => 'badge-draft'], ]; $s = $statusMap[(int)$doc->status_id] ?? ['label' => $doc->status_id, 'class' => 'badge-draft']; @endphp @empty @endforelse
{{ __('Number') }} {{ __('Title') }} {{ __('Description') }} {{ __('Status') }} {{ __('Attachment') }} {{ __('Created') }} {{ __('Actions') }}
{{ $doc->no }} {{ $doc->title }} {{ $doc->description ?: '—' }} {{ $s['label'] }} @if(!empty($doc->lampiran_file)) {{ __('View') }} @else @endif {{ $doc->created_at?->format('d M Y') }}
{{ __('Detail') }} @if($doc->status_id == \App\Models\Document::DOC_STATUS_DRAFT || $doc->status_id == \App\Models\Document::DOC_STATUS_SENT)
@csrf
@endif

{{ __('No memos yet. Click "Create Memo" to add one.') }}