@extends('layouts.portal') @section('title', __('Fiscal Years & Periods')) @push('styles') @include('accounting.journal._styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Fiscal Years & Periods') }}

{{ __('Entries can only be posted on dates that fall in an open period.') }}

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

{{ __('New fiscal year') }}

@forelse($years as $year) @empty @endforelse
{{ __('Name') }} {{ __('Starts on') }} {{ __('Ends on') }} {{ __('Periods') }} {{ __('Open periods') }} {{ __('Status') }}
{{ $year->name }} {{ $year->starts_on->format('Y-m-d') }} {{ $year->ends_on->format('Y-m-d') }} {{ $year->periods_count }} {{ $year->open_periods_count }} {{ $year->isClosed() ? __('Closed') : __('Open') }}
{{ __('No fiscal years defined yet. Until one exists, entries can be posted on any date.') }}
@endsection