@extends('layouts.app') @section('title', 'Settings ยท Payment methods') @section('content')
@include('settings._tabs')
@csrf
Payment methods

Only methods that are on are offered at the till, on expenses and when editing a sale. The first five are shown as buttons on the payment screen; the rest are under "More".

    @foreach($methods as $m) @php($isCash = $m['key'] === \App\Helpers\PaymentMethods::ALWAYS_ON)
  • Button @if(!$m['builtin'])Added@endif @if(in_array($m['key'], $used, true))Used on sales@endif @if($isCash)Always on (cash drawer)@endif @if($isCash)@endif @if(!$m['builtin'] && !in_array($m['key'], $used, true)) @else @endif
  • @endforeach
@foreach($methods as $m) @if(!$m['builtin'] && !in_array($m['key'], $used, true))
@csrf @method('DELETE')
@endif @endforeach
@csrf
Add a payment method

For example FDH Bank, NBS Bank, Insurance or Staff account.

Good to know
Switching a method off hides it for new sales only. Past sales keep it, and reports still show it by name. Methods already used on a sale can be switched off but not deleted.
@endsection @section('scripts') @endsection