@extends('layouts.app')
@section('title', 'Reports ยท SakuApp')
@section('page-title', 'Reports')
@section('content')
{{-- Filter bar --}}
{{-- 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
| Date |
Description |
Type |
Amount |
Note |
@foreach ($transactions as $txn)
|
{{ $txn->date->format('d M Y') }} |
{{ $txn->title }} |
{{ ucfirst($txn->type) }} |
{{ number_format($txn->amount, 2) }} |
{{ $txn->note ? Str::limit($txn->note, 36) : 'โ' }} |
@endforeach
@endif
@if ($transactions->hasPages())
@endif
@endsection