@extends('layouts.app') @section('title', 'Payment Methods') @push('styles') @endpush @section('content')

Payment Methods

@if(session('success'))
{{ session('success') }}
@endif @if(isset($paymentMethods) && $paymentMethods->count())
@foreach($paymentMethods as $method)
@if($method->is_default)
Default
@endif
{{ $method->label }}
@if($method->type === 'card') **** **** **** {{ $method->last_four }} @else {{ $method->bank_name }} — {{ $method->account_number }} @endif
@unless($method->is_default)
@csrf @method('PUT')
@endunless
@csrf @method('DELETE')
@endforeach
@else

No payment methods

Add a card or bank account to get started.

@endif {{-- Add Payment Method Modal --}} @endsection @push('scripts') @endpush