@extends('layouts.app') @section('title', 'Relatório de Fluxo de Caixa') @section('header')

Relatório de Fluxo de Caixa

Análise de entradas e saídas financeiras por período

@endsection @section('header-actions')
@endsection @section('content')
Filtros e Período
@if($dailyFlow->count() > 0)
Total de Entradas

R$ {{ number_format($dailyFlow->sum('credits'), 2, ',', '.') }}

Total de Saídas

R$ {{ number_format($dailyFlow->sum('debits'), 2, ',', '.') }}

Saldo Líquido
@php $netBalance = $dailyFlow->sum('credits') - $dailyFlow->sum('debits'); @endphp

R$ {{ number_format($netBalance, 2, ',', '.') }}

Saldo Final

R$ {{ number_format($dailyFlow->last()->cumulative_balance, 2, ',', '.') }}

@endif
Fluxo de Caixa Detalhado
até
@forelse($dailyFlow as $index => $day) @empty @endforelse @if($dailyFlow->count() > 0) @endif
Data Entradas Saídas Saldo do Dia Saldo Acumulado Variação
{{ $day->transaction_date->format('d/m/Y') }}
{{ $day->transaction_date->format('l') }}
R$ {{ number_format($day->credits, 2, ',', '.') }} R$ {{ number_format($day->debits, 2, ',', '.') }} R$ {{ number_format($day->daily_balance, 2, ',', '.') }} R$ {{ number_format($day->cumulative_balance, 2, ',', '.') }} @if($index > 0) @php $previousBalance = $dailyFlow[$index - 1]->cumulative_balance; $variation = (($day->cumulative_balance - $previousBalance) / abs($previousBalance)) * 100; @endphp {{ number_format(abs($variation), 1) }}% @else - @endif
Nenhuma movimentação encontrada

Não há transações para o período selecionado.

TOTAIS DO PERÍODO R$ {{ number_format($dailyFlow->sum('credits'), 2, ',', '.') }} R$ {{ number_format($dailyFlow->sum('debits'), 2, ',', '.') }} @php $totalNet = $dailyFlow->sum('credits') - $dailyFlow->sum('debits'); @endphp R$ {{ number_format($totalNet, 2, ',', '.') }} R$ {{ number_format($dailyFlow->last()->cumulative_balance, 2, ',', '.') }} -
@endsection @push('styles') @endpush @push('scripts') @endpush