@extends('layouts.public') @section('content') @php /** @var array $user */ /** @var array $methods */ $methods = $methods ?? []; $savable = $savable ?? []; @endphp

{{ t_raw('account.payment') }}

@php /* The page's messages belong UNDER its title band, inside the page the reader is looking at — not floating above it. getFlashes() consumes, so the layout's own call further out finds nothing and does not draw it twice. */ @endphp
@partial('flash')
@php /* The customer account sidebar belongs to the customer account. An owner reaches this same screen from their billing page and gets the full width instead of a nav that is not theirs. */ @endphp @php $isCustomer = \App\Support\Auth::is('customer'); @endphp @if ($isCustomer)
@partial('account-nav')
@endif
@partial('payment-methods', ['methods' => $methods, 'savable' => $savable, 'publicKey' => $publicKey ?? ''])
@endsection