@extends('layouts.admin') @section('title', 'Transações Financeiras') @section('breadcrumb') Transações @endsection @push('styles') @endpush @section('content')
🏠 Relatórios 📈 Receitas 🛏 Ocupação 📋 Transações 💰 Caixa
Exportar PDF
Limpar
{{-- Totais --}}
Total Entradas
R$ {{ number_format((float)$totals->total_credit, 2, ',', '.') }}
Total Saídas
R$ {{ number_format((float)$totals->total_debit, 2, ',', '.') }}
Saldo Líquido
@php $net = (float)$totals->total_credit - (float)$totals->total_debit; @endphp
R$ {{ number_format(abs($net), 2, ',', '.') }} {{ $net >= 0 ? '▲' : '▼' }}
{{-- Tabela --}}
Transações ({{ $totals->total_count }}) {{ $transactions->currentPage() }} / {{ $transactions->lastPage() }} páginas
@forelse($transactions as $t) @empty @endforelse
#DescriçãoReservaData/HoraTipoValor
{{ $t->id }}
{{ $t->description }}
@if($t->notes)
{{ $t->notes }}
@endif
@if($t->reservation) {{ $t->reservation->locator }}
{{ $t->reservation->guest?->full_name }}
@else@endif
{{ $t->transacted_at->format('d/m/Y') }}
{{ $t->transacted_at->format('H:i') }}
{{ $t->type === 'credit' ? '▲ Entrada' : '▼ Saída' }} {{ $t->type === 'credit' ? '+' : '-' }}R$ {{ number_format((float)$t->amount, 2, ',', '.') }}
Nenhuma transação encontrada.
{{-- Paginação --}} @if($transactions->hasPages())
@if($transactions->onFirstPage()) ← Anterior @else ← Anterior @endif @if($transactions->hasMorePages()) Próximo → @else Próximo → @endif
@endif
@endsection