<section class="accordion accordion-flush ps-2" id="accordion-tax-global">
    <div class="accordion-item">

        {{-- Title --}}
        <div class="accordion-header" id="tax-global-unique-header">
            <button type="button" class="accordion-button fs-4 main-accordion-button ps-0 pe-3"
                data-bs-toggle="collapse" data-bs-target="#tax-global-unique"
                aria-expanded="true" aria-controls="tax-global-unique"
            >
                Información Global
            </button>
        </div>

        {{-- Content --}}
        <div id="tax-global-unique"
            class="px-2 accordion-collapse collapse show row justify-content-start"
            aria-labelledby="tax-global-unique-header"
        ><div class="px-2 accordion-body" id="global-form">
            <div class="row justify-content-start">

                {{-- Periodicity --}}
                <div class="flex-shrink-0 col-4">
                    <div class="mb-3 input-group">
                        <div class="input-group-prepend">
                            <label for="periodicity" class="input-group-text">
                                Periodicidad {!! $required_field !!}
                            </label>
                        </div>

                        <select id="periodicity" name="periodicity" class="form-control" required>
                            <option value="" selected disabled>{{ __('neutral_words')['none_2'] }}</option>
                            @foreach ($periodicities as $p)
                                <option value="{{ $p->item_key }}">
                                    {{ $p->item_key }} - {{ $p->label }}
                                </option>
                            @endforeach
                        </select>
                    </div>
                </div>

                {{-- Months --}}
                <div class="flex-shrink-0 col-4">
                    <div class="mb-3 input-group">
                        <div class="input-group-prepend">
                            <label for="months" class="input-group-text">
                                Periodo {!! $required_field !!}
                            </label>
                        </div>

                        <select id="months" name="months" class="form-control" required>
                            <option value="" selected disabled>{{ __('neutral_words')['none_2'] }}</option>
                            @foreach ($fiscal_months as $fm)
                                <option value="{{ $fm->item_key }}">
                                    {{ $fm->item_key }} - {{ $fm->label }}
                                </option>
                            @endforeach
                        </select>
                    </div>
                </div>

                {{-- Year --}}
                <div class="flex-shrink-0 col-4">
                    <div class="mb-3 input-group">
                        <div class="input-group-prepend">
                            <label for="year" class="input-group-text">
                                Año {!! $required_field !!}
                            </label>
                        </div>

                        @php
                            $current_year = (int) now()->year;
                            $last_year = (int) now()->subYear()->year;
                        @endphp
                        <select id="year" name="year" class="form-control" required>
                            <option value="{{ $current_year }}" selected>{{ $current_year }}</option>
                            <option value="{{ $last_year }}">{{ $last_year }}</option>
                        </select>
                    </div>
                </div>

            </div>
        </div></div>
    </div>
</section>
