@extends('layouts.app') @section('title', __('accounting::lang.fiscal_periods')) @section('content') @include('accounting::layouts.nav')

@lang('accounting::lang.fiscal_periods')

@lang('accounting::lang.add_fiscal_period')

@csrf
@foreach($periods as $period) @endforeach
@lang('accounting::lang.period_name')@lang('report.start_date')@lang('report.end_date')@lang('sale.status')@lang('messages.action')
{{ $period->name }} {{ $period->start_date->format('Y-m-d') }} {{ $period->end_date->format('Y-m-d') }} {{ $period->is_closed ? __('accounting::lang.closed') : __('accounting::lang.open') }} @if(! $period->is_closed)
@csrf
{!! Form::select('retained_earnings_account_id', $accounts, null, ['class'=>'form-control input-sm','placeholder'=>__('accounting::lang.retained_earnings_account'),'style'=>'min-width:180px']) !!}
@lang('accounting::lang.close_period_help')
@else @lang('accounting::lang.period_closed') @endif
@endsection