@php $canManage = auth()->user() && method_exists(auth()->user(), 'can') ? auth()->user()->can('reports.expenses.manage') : false; $fmtCurrency = fn ($value) => 'Rp'.number_format((float) $value, 0, ',', '.'); $suggestedCategories = (array) ($suggestedCategories ?? []); @endphp

Beban Operasional

Catat biaya operasional usaha untuk perhitungan laba bersih.

@if ($canManage) @endif
Total Beban: {{ $fmtCurrency($total ?? 0) }}
@forelse ($rows as $row) @empty @endforelse
Tanggal Kategori Nilai Catatan Dibuat oleh Aksi

{{ optional($row->expense_date)->format('d M Y') }}

{{ optional($row->expense_date)->format('Y-m-d') }}

{{ (string) $row->category }}

{{ $fmtCurrency((int) $row->amount) }}

{{ (string) ($row->note ?? '-') }}

{{ (string) ($users[(int) ($row->created_by_user_id ?? 0)] ?? '-') }}

@if ($canManage)
@else

-

@endif
{{ $rows->links('livewire.pagination.admin') }}
@if ($formModalOpen) @endif @if ($deleteConfirmOpen) @endif