<section class="pb-2 mb-4 row justify-content-start">

    <div class="gap-3 mb-3 d-flex align-items-center">
        <a class="btn btn-outline-harsi" href="{{ route('invoices.index') }}">
            <i class="fas fa-chevron-left me-2"></i>
            {{ __('tickets')['hotel']['reservation_tickets']['go_back'] }}
        </a>

        <h3 class="mb-0">Emisión de Factura</h3>
    </div>

    {{-- Folio --}}
    <div id="hidden_id_block" class="mt-2"
        style="width: 20%; @if (!$is_editing) display:none @endif"
    >
        <div class="input-group">
            <div class="input-group-prepend">
                <label for="hidden_id" class="input-group-text disabled-fields">
                    Folio
                </label>
            </div>

            <input type="text" id="illusionary_id" readonly
                class="form-control disabled-fields">

            <input type="hidden" id="hidden_id" name="hidden_id" readonly>
        </div>
    </div>


    {{-- Date --}}
    <div class="mt-2" style="width: 30%">
        @php
            use Carbon\Carbon;
            $default_date = $today;
        @endphp

        <div class="input-group">
            <div class="input-group-prepend">
                <label for="date" class="input-group-text">
                    Fecha y Hora
                </label>
            </div>

            <input type="datetime-local" id="date" name="date" required
                min="{{ $limitDate->format('Y-m-d\T00:00:00') }}"
                max="{{ $today->format('Y-m-d\TH:i:s') }}"
                value="{{ $default_date->format('Y-m-d\TH:i:s') }}"
                class="form-control" step="1">
        </div>
    </div>

    {{-- Hidden Controls --}}
    <input type="hidden" name="system_service_type" id="system_service_type" value="{{ $service_type }}">
    <input type="hidden" name="system_service_id" id="system_service_id" value="{{ $service_id }}">

</section>
