@extends('layouts.app') @section('content')
Rp {{ number_format($totalExpenses, 0, ',', '.') }}
{{ $expenses->count() }}
@if($expenses->count() > 0) Rp {{ number_format($totalExpenses / $expenses->count(), 0, ',', '.') }} @else Rp 0 @endif
| Judul | Jumlah | Tanggal | Kategori | Proyek | Status |
|---|---|---|---|---|---|
| {{ $expense->title }} | Rp {{ number_format($expense->amount, 0, ',', '.') }} | {{ $expense->expense_date->format('d/m/Y') }} | {{ $expense->category }} | {{ $expense->project ? $expense->project->name : 'Tidak Ada' }} | @if($expense->status == 'draft') Draft @elseif($expense->status == 'approved') Disetujui @elseif($expense->status == 'rejected') Ditolak @endif |