@extends('companyuser::layouts.master') @section('title', __('settings::financial_years.title')) @section('breadcrumb') @endsection @section('content')
{{__('settings::financial_years.id')}}
{{$fiscalYear->id}}
{{__('settings::financial_years.start date')}}
{{\App\Services\Date::format($fiscalYear->year . '-' . $fiscalYear->month . '-' . $fiscalYear->day, 'date')}}
{{__('settings::financial_years.end date')}}
@if($fiscalYear->is_current) @lang('settings::financial_years.to present') @else {{\App\Services\Date::format($fiscalYear->closing_date, 'date')}} @endif
{{__('settings::financial_years.First transaction date')}}
{{ $firstTransactionDate}} @if(!$checkFirstTransactionDate) @endif
{{__('settings::financial_years.Last transactions date')}}
{{$lastTransactionDate}} @if(!$checkLastTransactionDate) @endif
{{__('settings::financial_years.created at')}}
{{\App\Services\Date::format($fiscalYear->created_at, 'date')}}
{{__('settings::financial_years.status')}}
{{__('settings::financial_years.status.' . $fiscalYear->is_current)}}

@lang('settings::financial_years.Accounts balances')

@if($accountBalances) @foreach($accountBalances as $item) @endforeach @endif
ID @lang('settings::financial_years.Account Name') @lang('settings::financial_years.Opening Date') @lang('settings::financial_years.Opening Balance') @lang('settings::financial_years.Closing Balance')
{{$item->account_id}} {{$item->account->name}} {{\App\Services\Date::format($item->opening_date, 'date')}} {{number_format($item->opening_balance,2)}} @if($fiscalYear->is_current) {{number_format($item->account->current_balance,2)}} @else {{number_format($item->closing_balance,2)}} @endif

@endsection @section('extra_scripts') @endsection