@extends('template.content') @section('title', 'Pengeluaran') @push('script') @endpush @section('content')

@yield('title')

Tambah Pengeluaran

Rp. {{ number_format($total_pengeluaran, 0, ',', '.') }}

@if (auth()->user()->level == 'admin') @endif @foreach ($pengeluaran as $peng) @if (auth()->user()->level == 'admin') @endif @endforeach
Aksi Tanggal Deskripsi Metode Pembayaran Kode Akun JumlahOleh
{{ $peng->created_at ? $peng->created_at->format('d-m-Y H:i') : '-' }} {{ $peng->deskripsi }} {{ $peng->metode_pembayaran }} {{ $peng->akun->kode_akun ?? "-" }} Rp. {{ number_format($peng->jumlah, 0, ",", ".") }}{{ $peng->user->name }}
{{ $pengeluaran->appends(request()->only(['cari', 'bulan', 'tahun', 'user']))->links('pagination::bootstrap-4') }}
@endsection