@extends('layouts.app') @section('title', '재무 대시보드') @section('content')
{{-- 페이지 헤더 --}}

재무 대시보드

{{ now()->format('Y년 n월 j일') }} 현재

{{-- 요약 카드 --}}
{{-- 총 잔액 --}}

총 잔액

{{ number_format($accountSummary['total_balance']) }}원

{{ $accountSummary['total_accounts'] }}개 계좌

{{-- 예정 수입 --}}

예정 수입

+{{ number_format($monthlySummary['income']['pending']) }}원

이번 달 예정

{{-- 예정 지출 --}}

예정 지출

-{{ number_format($monthlySummary['expense']['pending']) }}원

이번 달 예정

{{-- 7일내 일정 --}}

7일내 일정

{{ $scheduleSummary['upcoming_7days'] }}건

처리 필요

{{-- 이번 달 요약 --}}

{{ now()->format('n월') }} 자금 일정 요약

수입

+{{ number_format($monthlySummary['income']['total']) }}원

완료: {{ number_format($monthlySummary['income']['completed']) }}원 / 예정: {{ number_format($monthlySummary['income']['pending']) }}원

지출

-{{ number_format($monthlySummary['expense']['total']) }}원

완료: {{ number_format($monthlySummary['expense']['completed']) }}원 / 예정: {{ number_format($monthlySummary['expense']['pending']) }}원

순수익

{{ $monthlySummary['net'] >= 0 ? '+' : '' }}{{ number_format($monthlySummary['net']) }}원

총 {{ $monthlySummary['total_count'] }}건 일정

{{-- 계좌별 잔액 --}}

계좌별 잔액

전체보기
@forelse($accountBalances as $account)
{{ mb_substr($account->bank_name, 0, 2) }}

{{ $account->account_name ?: $account->bank_name }}

{{ $account->account_number }}

{{ $account->account_type }}

@empty
등록된 계좌가 없습니다.
@endforelse
{{-- 향후 7일 자금 일정 --}}

향후 7일 자금 일정

전체보기
@forelse($upcomingSchedules as $schedule)
@if($schedule->schedule_type === 'income') @else @endif

{{ $schedule->title }}

{{ $schedule->scheduled_date->format('m/d') }} @if($schedule->counterparty) - {{ $schedule->counterparty }} @endif

{{ $schedule->schedule_type === 'income' ? '+' : '-' }}{{ number_format($schedule->amount) }}원

{{ $schedule->status === 'pending' ? '대기' : ($schedule->status === 'completed' ? '완료' : '취소') }}
@empty
7일내 예정된 일정이 없습니다.
@endforelse
{{-- 최근 거래내역 (바로빌) --}}

최근 거래내역

전체보기
@forelse($recentTransactions as $tx) @php $transDate = \Carbon\Carbon::createFromFormat('Ymd', $tx->trans_date); @endphp @empty @endforelse
날짜 은행 적요 상대방 입금 출금 잔액
{{ $transDate->format('m/d') }} {{ $tx->bank_name ?? '-' }} {{ Str::limit($tx->summary, 15) }} {{ Str::limit($tx->cast, 10) }} {{ $tx->deposit > 0 ? '+' . number_format($tx->deposit) : '-' }} {{ $tx->withdraw > 0 ? '-' . number_format($tx->withdraw) : '-' }} {{ number_format($tx->balance) }}원
최근 7일간 거래내역이 없습니다.
{{-- 최근 카드 사용내역 (바로빌) --}}

최근 카드 사용내역

전체보기
@forelse($recentCardTransactions as $card) @php $useDate = \Carbon\Carbon::createFromFormat('Ymd', $card->use_date); $useTime = $card->use_time ? substr($card->use_time, 0, 2) . ':' . substr($card->use_time, 2, 2) : ''; $isCancel = $card->approval_type === '취소'; $isDeductible = $card->deduction_type === 'deductible'; $cardLast4 = substr($card->card_num, -4); @endphp @empty @endforelse
사용일시 카드번호 공제 가맹점 내역 금액 계정과목
{{ $useDate->format('m/d') }} {{ $useTime }} ****-{{ $cardLast4 }} {{ $isDeductible ? '공제' : '불공' }} {{ Str::limit($card->merchant_name, 25) }} {{ Str::limit($card->description ?: '-', 25) }} {{ $isCancel ? '-' : '' }}{{ number_format($card->approval_amount) }} {{ Str::limit($card->account_name ?: '-', 10) }}
최근 7일간 카드 사용내역이 없습니다.
@endsection