@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.bonds') => '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => 'settings.accounting.bonds']) @endsection @section('accounting-settings-content')

@lang('settings/accounting/bonds.bonds_settings')

{{-- Bonds Settings Form --}}
@csrf @method('PUT') {{-- General Settings --}}
@can('accountingSettings-bonds-exchangeChecksDailyCeiling')
@endcan

{{-- Bonds Auto Printing After Save Settings --}}

@lang('settings/accounting/bonds.accounting_bonds_printing_after_save')


{{-- Bonds Auto Post Form --}}

@lang('settings/accounting/bonds.auto_post_entry')


{{-- Unpost the bonds --}}
@lang('settings/accounting/bonds.unpost_entry')
@can('accountingSettings-bonds-unpostEntry')
@endcan @can('accountingSettings-bonds-unpostReceipt')
@endcan @can('accountingSettings-bonds-unpostExchange')
@endcan @can('accountingSettings-bonds-unpostServiceInvoice')
@endcan @can('accountingSettings-bonds-unpostReturnedServiceBond')
@endcan @can('accountingSettings-bonds-unpostDebitNote')
@endcan @can('accountingSettings-bonds-unpostCreditNote')
@endcan

{{-- Deletable bonds --}}
@lang('settings/accounting/bonds.deletable_bond')
@php $bonds_keys = [ 'entries' => __('breadcrumb.entries_bonds'), 'receipts' => __('breadcrumb.receipt_bonds'), 'exchanges' => __('breadcrumb.exchange_bonds'), 'serviceInvoices' => __('breadcrumb.service_sale_invoices'), 'returnedServiceBonds' => __('breadcrumb.returned_service_bonds'), 'debitNotes' => __('breadcrumb.debit_notes'), 'creditNotes' => __('breadcrumb.credit_notes'), ]; @endphp @foreach ($bonds_keys as $bonds_key => $bond_title)
@endforeach

{{-- number way bonds --}}
@lang('settings/accounting/bonds.number_bonds')
@php $bonds_keys = [ 'ReceiptEntry' => __('breadcrumb.receipt_bonds'), 'ExchangeEntry' => __('breadcrumb.exchange_bonds'), 'ServiceInvoice' => __('breadcrumb.service_sale_invoices'), 'ReturnedServiceBond' => __('breadcrumb.returned_service_bonds'), 'DebitNote' => __('breadcrumb.debit_notes'), 'CreditNote' => __('breadcrumb.credit_notes'), ]; @endphp @php $activeYear = \App\Models\Accounting\FiscalYear::where('is_active', true)->first(); if ($activeYear) { $isFinancialClosed = $activeYear->is_closed; $isFinancialStart = now()->month == 1 && !$isFinancialClosed; } else { $isFinancialClosed = true; $isFinancialStart = false; } // $isDisabled = $isFinancialClosed || !$isFinancialStart ? 'disabled' : ''; // $message = // $isFinancialClosed || !$isFinancialStart // ? 'لا يمكنك تعديل الترقيم بعد بداية السنة المالية.' // : ''; @endphp @foreach ($bonds_keys as $bonds_key => $bond_title)
@endforeach {{-- @if ($message) {{ $message }} @endif --}}
@endsection @push('script') @endpush