@extends('mainlayout.layout') @section('title', config('app.name') . ' | ' . $owner->name . ' Bank Accounts') @section('topbar-search', 'enabled') @section('content') @php $canEdit = auth()->user()->hasRole('superadmin') || auth()->user()->can('propertyowner.edit'); $accountListUrl = route('property-owner-bank-accounts.index', encrypt($owner->id)); @endphp
{{ $owner->name }}
Property owner bank accounts

Bank Accounts

Manage receiving accounts and payout preferences for {{ $owner->name }}.

@if($canEdit)@endif
@if(session('message'))
{{ session('message') }}
@endif @if(session('error'))@endif @if($errors->any())@endif
Total accounts{{ number_format($stats['total']) }}All linked accounts
Default payout accounts{{ number_format($stats['defaults']) }}Selected receiving account
Active accounts{{ number_format($stats['active']) }}{{ $stats['total'] ? round(($stats['active'] / $stats['total']) * 100, 1) : 0 }}% of all accounts
Currencies used{{ number_format($stats['currencies']) }}{{ $currenciesUsed->implode(', ') ?: 'None' }}

Linked accounts

Search and manage this owner's bank accounts.

{{ number_format($accounts->total()) }} accounts
Clear
@if($accounts->isEmpty())

No bank accounts found

{{ $stats['total'] ? 'Try another search or clear the current filters.' : 'Link a receiving account to get started.' }}

@if($stats['total'])Clear filters@elseif($canEdit)Add Bank Account@endif
@else
@foreach($accounts as $account) @endforeach
Linked bank accounts for {{ $owner->name }}
Bank / accountAccount numberCurrencyStatusUsageAdded onActions
{{ optional($account->bank)->name ?: 'Bank not selected' }}{{ $account->account_name }}@if($account->nickname){{ $account->nickname }}@endif
{{ $account->masked_account_number }} {{ $account->currency }} {{ $account->status_label }}
@if($account->is_default)Default payout@endif @if($account->use_for_refunds)Refunds@elseif(!$account->is_default)General@endif
{{ optional($account->created_at)->format('d M Y') ?: '—' }}
@if($account->supporting_document_path)@endif @if($canEdit)@endif @if($canEdit && !$account->is_default && $account->status === 'active')
@csrf
@endif
@foreach($accounts as $account)@endforeach
Showing {{ $accounts->firstItem() }} to {{ $accounts->lastItem() }} of {{ number_format($accounts->total()) }} accounts@if($accounts->hasPages())@endif
@endif
@endsection @push('scripts') @endpush