@php
    $confday = config('app.billing_cycle');
@endphp


<div class="modal fade" id="billCycleChange">
    <div class="modal-dialog">

        <form action="{{ route('userBillingCycleChange') }}" method="POST" class="flex flex-wrap">
            @csrf
            <input type="hidden" name="id" id="bill_client_id">
            <p id="cid"></p>

            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="text-center">Bill Cycle Change </h4>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="text-center" id="modalAlert"></div>

                    <div class="row">
                        <input type="hidden" id="uuid" name="uuid" value="{{createUUID()}}">
                        <div class="col-md-4">Select Date</div>
                        <div class="col-md-8 mb-2">
                            <select name="billCycle" id="allBillCycle" class="form-control" required>
                                <option value="">Select Date</option>
                                @foreach (explode(',', $confday) as $item)
                                    <option value="{{ $item }}">
                                        {{ $item }}</option>
                                @endforeach

                            </select>
                        </div>

                    </div>


                </div>
                <div class="modal-footer justify-content-between">
                    <button type="button" class="btn 5 btn-default" data-dismiss="modal">Close</button>
                    <button class="btn btn-primary billingCycleChange" type="submit" id="modalSave">Change</button>
                </div>

            </div>
            <!-- /.modal-content -->
        </form>
    </div>
    <!-- /.modal-dialog -->
</div>
