@extends('layouts.school') @section('title', 'Bank Accounts') @section('header', 'School Bank Accounts') @section('content')
@forelse ($accounts as $account)

{{ $account->bank_name }}

{{ $account->purpose ?? ucfirst($account->account_type) }}

@if ($account->is_default)Default@endif

{{ $account->maskedNumber() }}

Acct name: {{ $account->account_name }}

@unless ($account->is_default)
@csrf @method('PATCH')
@endunless
@csrf @method('PATCH')
@empty

No bank accounts yet. Add one so parents know where to transfer fees.

@endforelse

Add Bank Account

@csrf
@endsection