@extends('layouts.admin') @section('styles') @endsection @section('content')
@include('admin.partials.pro-hero', [ 'icon' => 'fas fa-chart-line', 'title' => __('Financial Statement & Fund Management'), 'subtitle' => __('Track income, expenses, and fund balance'), 'breadcrumbs' => [ ['label' => __('Dashboard'), 'url' => route('admin.dashboard')], ['label' => __('Fund Report'), 'url' => null], ], ]) @include('includes.admin.form-error') @include('includes.admin.form-success') @include('includes.admin.form-both')

{{ __('Date Filter') }}

{{ __('Income') }} ({{ request('date') ? date('d M', strtotime(request('date'))) : __('Today') }})

৳ {{ number_format($total_income, 2) }}

{{ __('Expense') }} ({{ request('date') ? date('d M', strtotime(request('date'))) : __('Today') }})

৳ {{ number_format($total_expense, 2) }}

{{ __('Total Fund Balance') }}

৳ {{ number_format($current_fund, 2) }}

{{ __('Fund Actions') }}

{{ __('Ledger (Datewise Transactions)') }}

@foreach($transactions as $trans) @endforeach
{{ __('Type') }} {{ __('Amount') }} {{ __('Reference') }} {{ __('Note') }} {{ __('Date') }}
{{ strtoupper($trans->type) }} ৳ {{ number_format($trans->amount, 2) }} #{{ $trans->reference_id }} {{ $trans->note }} {{ $trans->created_at->format('d M, Y h:i A') }}
{{ $transactions->links() }}
@endsection