@extends('layouts.portal') @section('title', __('Payment Methods')) @push('styles') @include('accounting.journal._styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Payment Methods') }}

{{ __('Ways to pay and get paid, each with the cash or bank account it posts to. They are shared by Purchases and Sales.') }}

@if(session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf

{{ __('New payment method') }}

@forelse($methods as $method) @php($usage = $method->paymentsCount()) @empty @endforelse
{{ __('Name') }} {{ __('Type') }} {{ __('Account') }} {{ __('Payments using it') }} {{ __('Status') }}
{{ $method->name }} {{ __(ucfirst($method->kind)) }} {{ $method->account ? $method->account->code.' — '.$method->account->name : '—' }} {{ $usage }} {{ $method->is_active ? __('Active') : __('Inactive') }} {{ __('Edit') }} @if($usage === 0)
@csrf @method('DELETE')
@endif
{{ __('No payment methods defined yet.') }}
@endsection