@extends('accounting::settings.layout') @section('tab-title') {{ trans_choice('accounting::general.account_subtype', 2) }} @endsection @section('tab-content')

{{ trans_choice('accounting::general.account_subtype', 2) }}

@foreach ($account_types as $account_type) @component('accounting::components.box') @slot('title') {{ ucfirst($account_type->plural_name) }} @endslot @slot('header') @endslot @slot('body')
@php $filtered_account_subtypes = $account_subtypes->where('account_type', $account_type->id); @endphp @if (!empty($filtered_account_subtypes)) @foreach ($filtered_account_subtypes as $key) @endforeach @endif
{{ trans_choice('accounting::lang.name', 1) }} {{ trans_choice('accounting::lang.active', 1) }} {{ trans_choice('accounting::lang.action', 1) }}
{{ $key->name }} @if ($key->active) {{ trans('accounting::lang.yes') }} @else {{ trans('accounting::lang.no') }} @endif {{-- @if (!$key->is_default_type) --}}
{{-- @endif --}}
@endslot @endcomponent @endforeach
@endsection @section('tab-modal-content') @include('accounting::settings.account_subtypes.create') @endsection @section('tab-javascript') @if (file_exists(public_path('js/lang/' . session()->get('user.language', config('app.locale')) . '.js'))) @else @endif @php $business_date_format = session('business.date_format', config('constants.default_date_format')); $datepicker_date_format = str_replace('d', 'dd', $business_date_format); $datepicker_date_format = str_replace('m', 'mm', $datepicker_date_format); $datepicker_date_format = str_replace('Y', 'yyyy', $datepicker_date_format); $moment_date_format = str_replace('d', 'DD', $business_date_format); $moment_date_format = str_replace('m', 'MM', $moment_date_format); $moment_date_format = str_replace('Y', 'YYYY', $moment_date_format); $business_time_format = session('business.time_format'); $moment_time_format = 'HH:mm'; if ($business_time_format == 12) { $moment_time_format = 'hh:mm A'; } $common_settings = !empty(session('business.common_settings')) ? session('business.common_settings') : []; $default_datatable_page_entries = !empty($common_settings['default_datatable_page_entries']) ? $common_settings['default_datatable_page_entries'] : 25; @endphp {{-- vue-select --}} @php $validation_lang_file = 'messages_' . session()->get('user.language', config('app.locale')) . '.js'; @endphp @if (file_exists(public_path() . '/js/jquery-validation-1.16.0/src/localization/' . $validation_lang_file)) @endif @if (!empty($__system_settings['additional_js'])) {!! $__system_settings['additional_js'] !!} @endif @yield('javascript') @if (Module::has('Essentials')) @includeIf('essentials::layouts.partials.footer_part') @endif @endsection