@extends('layouts.app') @section('title', 'Bank Accounts') @include('inventory.accounting.partials.styles') @section('content')

Bank Accounts

Register real bank accounts and link them to ledger accounts for reconciliation.

@include('inventory.accounting.partials.sub-nav') @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif

Add Bank Account

@csrf
@forelse($bankAccounts as $b) @empty @endforelse
BankAccount NameNumberLinked AccountBalanceStatus
{{ $b->bank_name }}@if($b->swift_code)
SWIFT: {{ $b->swift_code }}
@endif
{{ $b->account_name }} {{ $b->account_number ?? '—' }} {{ optional($b->account)->code }} — {{ optional($b->account)->name }} {{ number_format(optional($b->account)->current_balance ?? 0, 2) }} {{ $b->currency }} @if($b->is_primary)Primary@endif @if($b->is_active)Active@elseInactive@endif
@csrf @method('DELETE')
No bank accounts yet.
@endsection