{{ __('app.accounts.payroll.title') }}

{{ __('app.accounts.payroll.desc') }}

@can('payroll_payments.create') {{ __('app.accounts.payroll.create') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm)
@foreach ($employees as $employee) @endforeach @if ($destination === 'cash') @foreach ($cashAccounts as $account) @endforeach @else @foreach ($bankAccounts as $account) @endforeach @endif
{{ __('app.actions.cancel') }} {{ __('app.actions.post') }}
@endif @if ($reversing)

{{ $reversing->payment_no }} — {{ $reversing->user?->name }} — {{ number_format((float) $reversing->amount, 2) }}

{{ __('app.accounts.vouchers.reversal.cancel') }} {{ __('app.accounts.payroll.reversal.submit') }}
@endif
@forelse ($payments as $payment) @empty @endforelse
{{ __('app.accounts.payroll.columns.payment_no') }} {{ __('app.accounts.payroll.columns.payee') }} {{ __('app.accounts.payroll.columns.period') }} {{ __('app.accounts.payroll.columns.amount') }} {{ __('app.accounts.payroll.columns.destination') }} {{ __('app.accounts.payroll.columns.paid_at') }} {{ __('app.accounts.payroll.columns.status') }} {{ __('app.accounts.payroll.columns.actions') }}
{{ $payment->payment_no }} {{ $payment->user?->name ?? '—' }} {{ $payment->period }} {{ number_format((float) $payment->amount, 2) }} @if ($payment->cashAccount) {{ $payment->cashAccount->code }} — {{ $payment->cashAccount->localizedName() }} @elseif ($payment->bankAccount) {{ $payment->bankAccount->code }} — {{ $payment->bankAccount->localizedName() }} @else — @endif {{ $payment->paid_at?->translatedFormat('d M Y') }} @if ($payment->isPosted()) {{ $payment->status->label() }} @else {{ $payment->status->label() }} @endif
@can('vouchers.view') {{ __('app.accounts.vouchers.actions.view') }} @endcan @if ($payment->isPosted()) @can('payroll_payments.reverse') {{ __('app.actions.reverse') }} @endcan @endif
@if ($payments->hasPages())
{{ $payments->links() }}
@endif