@extends('layouts.portal') @section('title', __('Chart of Accounts')) @push('styles') @endpush @section('content')
@include('partials.portal-header')

{{ __('Chart of Accounts Management') }}

{{ __('Accounting Module — SouthCal Cleaners') }}

@if(session('success'))
{{ session('success') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $importResult = session('import_result'); @endphp @if($importResult)
{{ __('Catalog import finished: :imported imported, :skipped skipped.', [ 'imported' => $importResult['imported'], 'skipped' => $importResult['skipped'], ]) }}
@if($importResult['errors'] !== [])
@foreach($importResult['errors'] as $importError) @endforeach
{{ __('Spreadsheet row') }} {{ __('Code') }} {{ __('Reason not imported') }}
{{ $importError['row'] }} {{ $importError['code'] ?: '—' }} {{ $importError['message'] }}
@endif @endif @php $nextDir = ($direction === 'asc') ? 'desc' : 'asc'; @endphp
{{ __('All Accounts') }}
{{ trans_choice(':count item|:count items', count($subaccounts), ['count' => count($subaccounts)]) }}
{{ __('Unreferenced accounts are permanently deleted. Referenced accounts are deactivated instead.') }}

{{ $editAccount ? __('Edit Account #:id', ['id' => $editAccount->id]) : __('Add New Account') }}

@csrf @if($editAccount) @method('PUT') @endif
is_posting ?? true) ? 'checked' : '' }}>
is_user_associated ?? false) ? 'checked' : '' }}>
is_stock_associated ?? false) ? 'checked' : '' }}>
@endsection