@extends('layouts.app') @section('content') @php $canCreate = auth()->check() && auth()->user()->hasPermission($module, 'bank_account_create'); $canEdit = auth()->check() && auth()->user()->hasPermission($module, 'bank_account_edit'); $canDelete = auth()->check() && auth()->user()->hasPermission($module, 'bank_account_delete'); @endphp

Bank Accounts
{{ $user->name ?: ($isPartner ? 'Partner #' : 'User #') . $user->id }} | {{ $user->email }}
@forelse($bankAccounts as $bankAccount) @empty @endforelse
# Account Holder Bank Account Number IBAN IFSC/SWIFT Currency Primary Actions
{{ $loop->iteration }} {{ $bankAccount->account_holder_name }}
{{ $bankAccount->bank_name }}
@if($bankAccount->branch_name) {{ $bankAccount->branch_name }} @endif
{{ $bankAccount->account_number ?: '-' }} {{ $bankAccount->iban ?: '-' }}
{{ $bankAccount->ifsc_code ?: '-' }}
@if($bankAccount->swift_code) SWIFT: {{ $bankAccount->swift_code }} @endif @if($bankAccount->routing_number) Routing: {{ $bankAccount->routing_number }} @endif
{{ $bankAccount->currency ?: '-' }} @if($bankAccount->is_primary) Primary @else No @endif
@if($canEdit) @php $editRoute = $isPartner ? route('admin.partners.bank-accounts.edit', [$user->id, $bankAccount->id]) : route('users.bank-accounts.edit', [$user->id, $bankAccount->id]); @endphp @endif @if($canDelete) @php $destroyRoute = $isPartner ? route('admin.partners.bank-accounts.destroy', [$user->id, $bankAccount->id]) : route('users.bank-accounts.destroy', [$user->id, $bankAccount->id]); @endphp
@csrf @method('DELETE')
@endif @unless($canEdit || $canDelete) - @endunless
No bank accounts found.
@endsection