@section('title', __('Payment Methods'))
@php $isAdminPaymentManager = auth()->user()->hasAnyRole(['admin', 'admin-limited']); $canAssignPaymentMethods = !$isAdminPaymentManager || !empty($selectedVendorId); @endphp @if ($isAdminPaymentManager)

{{ __('Vendor Payment Methods') }}

{{ __('Only admin and admin-limited can manage vendor payment methods. Select a vendor below to continue.') }}

@endif @if ($canAssignPaymentMethods) @else
{{ __('Select a vendor to view and manage payment methods.') }}
@endif
{{-- assign form --}}

{{ __('Assign Payment Methods To Vendor') }}

@if ($isAdminPaymentManager && !empty($selectedVendorId))

{{ __('Selected Vendor') }}: {{ $vendors[$selectedVendorId] ?? '—' }}

@endif {{-- table of all payment methods --}} @foreach ($paymentMethods ?? [] as $key => $paymentMethod) @endforeach
{{ __('Name') }} {{ __('Allowed On Regular Pickup') }} {{ __('Allowed') }}
{{ $paymentMethod->name }}