@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') @endsection