@extends('tenant.settings.accounting.accounting-settings-tabs') @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ __('breadcrumb.accounting_settings') => route('tenant.settings.accounting.taxes.index', ['type' => 'taxes']), __('breadcrumb.cost_centers') => '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'settings.accounting.cost-centers']) @endsection @section('accounting-settings-content')
@csrf @method('PUT') {{-- Activation cost-centers in general system --}}
@lang('settings/accounting/cost-center.active_cost_centers')
@php $is_cost_centers_enabled = count($active_modules) + count($active_accounts) > 0; @endphp
{{-- Activation cost-centers on specific modules --}}
@lang('settings/accounting/cost-center.activation_cost_centers_on_spicific_modules')
@php $system_modules = [ 'entries' => __('settings/accounting/cost-center.entries'), 'receipts' => __('settings/accounting/cost-center.receipts'), 'exchanges' => __('settings/accounting/cost-center.exchanges'), 'serviceInvoices' => __('settings/accounting/cost-center.serviceInvoices'), 'returnedServiceBonds' => __('settings/accounting/cost-center.returnedServiceBonds'), 'creditNotes' => __('settings/accounting/cost-center.creditNotes'), 'debitNotes' => __('settings/accounting/cost-center.debitNotes'), 'outBonds' => __('settings/accounting/cost-center.outBonds'), 'purchaseInvoices' => __('settings/accounting/cost-center.purchaseInvoices'), 'salesInvoices' => __('settings/accounting/cost-center.salesInvoices'), 'returnedPurchaseBonds' => __('settings/accounting/cost-center.returnedPurchaseBonds'), 'returnedSalesBonds' => __('settings/accounting/cost-center.returnedSalesBonds'), ]; @endphp
@php $is_all_selected = count($active_modules) == count($system_modules); @endphp
@foreach ($system_modules as $system_module_key => $syatem_module_value)
@endforeach
{{-- Activation cost-centers on specific accounts --}}
@lang('settings/accounting/cost-center.activation_cost_centers_on_spicific_accounts')
@foreach ($tree_accounts as $account)
number, $active_accounts) ? 'checked' : '' }}>
@endforeach
@endsection @push('script') @endpush