@extends('layouts.app') @section('title') Dashboard | Laporan Keuangan @endsection @php use Carbon\Carbon; Carbon::setLocale('id'); // Set locale ke Bahasa Indonesia ('id') @endphp @section('content')
No | Name | Total | |||
---|---|---|---|---|---|
Pemasukan | Pengeluaran | ||||
{{ $no++ }} | {{ $data->nama_tagihan }} | @if($data->jenis_transaksi == 'Pendapatan')Rp. {{ number_format($data->jumlah, 0, ',', '.') }} | - | @elseif($data->jenis_transaksi == 'Pengeluaran')- | Rp. {{ number_format($data->jumlah, 0, ',', '.') }} | @endif @endforeach
Total | Rp. {{ number_format($totalsaldo, 0, ',', '.') }} | Rp. {{ number_format($totalpengeluaran, 0, ',', '.') }} | |||
Jumlah Saldo | @elseJumlah Saldo {{ Carbon::createFromFormat('m', $bulan)->translatedFormat('F') }} {{ $tahun }} | @endifRp. {{ number_format($totalsaldo - $totalpengeluaran, 0, ',', '.') }} |