收入詳情 - {{ $income->income_number }}

@if (session('status'))

{{ session('status') }}

@endif @if (session('error'))

{{ session('error') }}

@endif {{-- 狀態卡片 --}}

{{ $income->title }}

收入編號:{{ $income->income_number }}

@if ($income->isCancelled()) {{ $income->getStatusText() }} @elseif ($income->isConfirmed()) {{ $income->getStatusText() }} @else {{ $income->getStatusText() }} @endif
{{-- 操作按鈕 --}}
@if ($income->canBeConfirmed()) @can('confirm_income')
@csrf
@endcan @endif @if ($income->canBeCancelled()) @can('cancel_income')
@csrf
@endcan @endif @if ($income->attachment_path) 下載附件 @endif
{{-- 金額與日期資訊 --}}

金額與日期

金額
NT$ {{ number_format($income->amount, 2) }}
收入日期
{{ $income->income_date->format('Y-m-d') }}
收入類型
{{ $income->getIncomeTypeText() }}
{{-- 會計資訊 --}}

會計資訊

會計科目
@if ($income->chartOfAccount) {{ $income->chartOfAccount->account_code }} - {{ $income->chartOfAccount->account_name_zh }} @else 未指定 @endif
付款方式
{{ $income->getPaymentMethodText() }}
@if ($income->bank_account)
銀行帳號
{{ $income->bank_account }}
@endif @if ($income->receipt_number)
收據編號
{{ $income->receipt_number }}
@endif @if ($income->transaction_reference)
交易參考號
{{ $income->transaction_reference }}
@endif
{{-- 付款人資訊 --}}

付款人資訊

@if ($income->member) @endif @if ($income->payer_name)
付款人姓名
{{ $income->payer_name }}
@endif @if (!$income->member && !$income->payer_name)
付款人
未記錄
@endif
{{-- 說明與備註 --}} @if ($income->description || $income->notes)

說明與備註

@if ($income->description)
說明
{{ $income->description }}
@endif @if ($income->notes)
內部備註
{{ $income->notes }}
@endif
@endif {{-- 處理記錄 --}}

處理記錄

出納記錄人
{{ $income->recordedByCashier?->name ?? '不適用' }}
@if ($income->recorded_at)
{{ $income->recorded_at->format('Y-m-d H:i') }}
@endif
@if ($income->isConfirmed())
會計確認人
{{ $income->confirmedByAccountant?->name ?? '不適用' }}
@if ($income->confirmed_at)
{{ $income->confirmed_at->format('Y-m-d H:i') }}
@endif
@endif
{{-- 關聯記錄 --}} @if ($income->isConfirmed() && ($income->cashierLedgerEntry || $income->accountingEntries->count() > 0))

關聯記錄

@if ($income->cashierLedgerEntry) @endif @if ($income->accountingEntries->count() > 0)
會計分錄
@foreach ($income->accountingEntries as $entry) @endforeach
會計科目 借方 貸方
{{ $entry->chartOfAccount->account_code }} - {{ $entry->chartOfAccount->account_name_zh }} @if ($entry->entry_type === 'debit') NT$ {{ number_format($entry->amount, 2) }} @endif @if ($entry->entry_type === 'credit') NT$ {{ number_format($entry->amount, 2) }} @endif
@endif
@endif {{-- 返回按鈕 --}}