@extends('root') @section('title', 'Detail Expense') @section('content')
@include('components.breadcrumb', [ 'title' => 'Detail Expense', 'links' => [ ['url' => route('admin.dashboard'), 'label' => 'Dashboard'], ['url' => route('admin.expenses.index'), 'label' => 'Expenses'], ], 'current' => 'Detail' ])
Informasi Expense
Tanggal {{ $expense->expense_date->format('d F Y') }}
Kategori @if($expense->category) {{ $expense->category->name }} @else - @endif
Deskripsi {{ $expense->description }}
Jumlah {{ $expense->formatted_amount }}
Metode Pembayaran {{ $expense->payment_method_label }}
Status Pembayaran @if($expense->payment_status == 'paid') Paid @else Unpaid @endif
Nomor Referensi @if($expense->reference_number) {{ $expense->reference_number }} @else - @endif
Catatan {{ $expense->notes ?: '-' }}
{{-- Attachment Card --}}
Lampiran Dokumen
@if($expense->attachment_url) @php $isImage = preg_match('/\.(jpg|jpeg|png|gif|webp)$/i', $expense->attachment); @endphp @if($isImage) @else
@endif Lihat/Download @else

Tidak ada lampiran

@endif
{{-- Transfer Proof Card --}}
Bukti Transfer
@if($expense->transfer_proof_url) @php $isImageProof = preg_match('/\.(jpg|jpeg|png|gif|webp)$/i', $expense->transfer_proof); @endphp @if($isImageProof) @else
@endif Lihat/Download @else

Tidak ada bukti transfer

@endif
{{-- Audit Info --}}
Info Audit
Dibuat oleh {{ $expense->creator->name ?? '-' }}
Dibuat pada {{ $expense->created_at->format('d M Y H:i') }}
Diupdate pada {{ $expense->updated_at->format('d M Y H:i') }}
@endsection