@extends('layouts.app') @section('title', 'Relatório de Fluxo de Caixa') @section('header')
Análise de entradas e saídas financeiras por período
| 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 encontradaNã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, ',', '.') }} | - |