@extends('layouts.app') @section('title') Dashboard @endsection @section('admin-content')

Edit Expense Vehicle Running Cost

@php $attachmentCategoryLabels = $attachmentCategoryLabels ?? ($vehicleAttachmentCategories ?? []); $attachmentCategories = $attachmentCategories ?? ($vehicleAttachmentCategoryKeys ?? array_keys($attachmentCategoryLabels)); @endphp
@csrf @method('PUT') @include('backend.layouts.partials.messages')
{{-- Konversi Cerdas Format Input Tipe 'date' --}}
{{-- BAGIAN LAMPIRAN TERSIMPAN DATABASE --}}

Pratinjau, unduh, atau hapus lampiran yang telah diunggah sebelumnya.

@forelse ($attachments as $attachment) @php $categoryValue = $attachment['file_category'] ?? null; $categoryLabel = $categoryValue ? ($attachmentCategoryLabels[$categoryValue] ?? ucwords(str_replace('_', ' ', $categoryValue))) : '-'; @endphp @empty @endforelse
Kategori Lampiran Nama File Pratinjau Unduh Aksi
{{ $categoryLabel }} {{ $attachment['filename'] ?? basename($attachment['file_path']) }} Unduh
Belum ada lampiran tersimpan.

Maksimal 10 MB per file. Semua tipe file diperbolehkan kecuali .exe, .bat, .sh, .cmd, .dll, dan .msi.

Kategori Lampiran Preview Aksi
Belum ada lampiran.
@include('backend.components.attachment-preview-modal', [ 'modalId' => 'existingAttachmentPreviewModal', 'title' => 'Pratinjau Lampiran', ]) @include('backend.components.attachment-preview-modal', [ 'modalId' => 'vehicleNewAttachmentPreviewModal', 'title' => 'Preview Lampiran', ])

Submitting, please wait...

@endsection