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

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

@can('vouchers.create') {{ __('app.accounts.vouchers.create') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif
@foreach ($types as $type) @endforeach @foreach ($statuses as $status) @endforeach @foreach ($years as $year) @endforeach
@if ($reversing)

{{ $reversing->voucher_no }} — {{ __('app.accounts.vouchers.reversal.desc') }}

{{ __('app.accounts.vouchers.reversal.cancel') }} {{ __('app.accounts.vouchers.reversal.submit') }}
@endif
@forelse ($vouchers as $voucher) @empty @endforelse
{{ __('app.accounts.vouchers.columns.voucher_no') }} {{ __('app.accounts.vouchers.columns.date') }} {{ __('app.accounts.vouchers.columns.type') }} {{ __('app.accounts.vouchers.columns.party') }} {{ __('app.accounts.vouchers.columns.amount') }} {{ __('app.accounts.vouchers.columns.status') }} {{ __('app.accounts.vouchers.columns.actions') }}
{{ $voucher->voucher_no }} @if ($voucher->reference_no) {{ $voucher->reference_no }} @endif {{ $voucher->voucher_date->translatedFormat('d M Y') }} {{ $voucher->type->label() }} {{ $voucher->category->label() }} {{ $voucher->party_name ?: '—' }} @if ($voucher->campaign) {{ $voucher->campaign->code }} @endif {{ number_format((float) $voucher->amount, 2) }}
@if ($voucher->isDraft()) {{ $voucher->status->label() }} @elseif ($voucher->isPosted()) {{ $voucher->status->label() }} @else {{ $voucher->status->label() }} @endif @if ($voucher->reversal_of_id !== null) {{ __('app.accounts.vouchers.form.reversal_badge') }} @endif
{{ __('app.accounts.vouchers.actions.view') }} @if ($voucher->isDraft()) @can('vouchers.edit') {{ __('app.accounts.vouchers.actions.edit') }} @endcan @can('vouchers.post') {{ __('app.accounts.vouchers.actions.post') }} @endcan @can('vouchers.delete') {{ __('app.accounts.vouchers.actions.delete') }} @endcan @elseif ($voucher->isPosted() && $voucher->reversal === null) @can('vouchers.reverse') {{ __('app.accounts.vouchers.actions.reverse') }} @endcan @endif @can('vouchers.print') {{ __('app.accounts.vouchers.actions.print') }} @endcan
@if ($vouchers->hasPages())
{{ $vouchers->links() }}
@endif