@use('App\Services\Date') @extends('companyuser::layouts.master') @section('title', __('accounting::chart_of_accounts.Edit Account')) @section('extra-styles') @endsection @section('breadcrumb') @endsection @section('content')
@csrf @method('PUT')
@include('companyuser::errors.lists')
@error('account_id') @enderror
@error('account_type')

{{ $message }}

@enderror @if(!$output['account']->isAccountCodeEditable()) @endif
( @lang('optional') )
@if($output['account']->accountingTree->count() == 0) @else @endif @error('parent_id')

{{ $message }}

@enderror @if(!$output['account']->isAccountCodeEditable()) @endif
@error('code')

{{ $message }}

@enderror @if(!$output['account']->isAccountCodeEditable())

{{ __('accounting::chart_of_accounts.non editable account message', ['field' => __('products::cost_center.Cost Center')]) }}

@endif
@error('name_ar')

{{ $message }}

@enderror
@error('name_en')

{{ $message }}

@enderror
( @lang('optional') )
@error('description')

{{ $message }}

@enderror
used_in_payment) checked @endif value="1" name="receive_payment"> @error('receive_payment')

{{ $message }}

@enderror
link_cost_center) checked @endif value="1" name="link_cost_center"> @error('link_cost_center')

{{ $message }}

@enderror
@if($output['showOpeningBalance'])
( {{Date::format($output['fiscalYear']->year . '-' . $output['fiscalYear']->month . '-' . $output['fiscalYear']->day)}} )
@error('opening_balance')

{{ $message }}

@enderror
@endif
@include('sales::includes.redirect_popup')
@endsection @section('extra_scripts') @endsection