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

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

@can('financial_years.create') {{ __('app.accounts.years.create') }} @endcan
@if ($notice) {{ $notice }} @endif @if ($errors->any())
    @foreach ($errors->all() as $message)
  • {{ $message }}
  • @endforeach
@endif @if ($showForm)
{{ __('app.actions.cancel') }} {{ __('app.actions.save') }}
@endif
@forelse ($years as $year) @empty @endforelse
{{ __('app.accounts.fields.code') }} {{ __('app.accounts.fields.name_en') }} {{ __('app.accounts.years.period') }} {{ __('app.accounts.fields.status') }} {{ __('app.accounts.fields.vouchers_count') }} {{ __('app.actions.view') }}
{{ $year->code }} {{ $year->localizedName() }} @if ($year->notes) {{ $year->notes }} @endif {{ $year->starts_on->translatedFormat('d M Y') }} — {{ $year->ends_on->translatedFormat('d M Y') }}
@if ($year->is_closed) {{ __('app.accounts.status.closed') }} @else {{ __('app.accounts.status.open') }} @endif @if ($year->is_current) {{ __('app.accounts.years.current_badge') }} @endif
{{ $year->vouchers_count }}
@can('financial_years.edit') @unless ($year->is_closed) {{ __('app.actions.edit') }} @if (! $year->is_current) {{ __('app.accounts.years.set_current') }} @endif @endunless @endcan @can('financial_years.close') @unless ($year->is_closed) {{ __('app.accounts.years.close') }} @endunless @endcan
@if ($years->isNotEmpty())

{{ __('app.accounts.years.closed_hint') }}

@endif