@extends('layouts.app') @section('title', 'Reports ยท SakuApp') @section('page-title', 'Reports') @section('content') {{-- Filter bar --}}
Reset
{{-- Stats --}}
Total Income
{{ number_format($totalIncome, 2) }}
Total Expenses
{{ number_format($totalExpense, 2) }}
Balance
{{ number_format($balance, 2) }}
{{-- Results table --}}

Transactions

{{ $transactions->total() }} result{{ $transactions->total() != 1 ? 's' : '' }}
@if ($transactions->isEmpty())
๐Ÿ”

No results found

Try adjusting your filter criteria.

@else @foreach ($transactions as $txn) @endforeach
Date Description Type Amount Note
{{ $txn->date->format('d M Y') }} {{ $txn->title }} {{ ucfirst($txn->type) }} {{ number_format($txn->amount, 2) }} {{ $txn->note ? Str::limit($txn->note, 36) : 'โ€”' }}
@endif
@if ($transactions->hasPages())
@foreach ($transactions->getUrlRange(1, $transactions->lastPage()) as $page => $url) @if ($page == $transactions->currentPage()) {{ $page }} @else {{ $page }} @endif @endforeach
@endif
@endsection