<div class="modal modal-lg fade" id="createShippingEntryModal" tabindex="-1"
        aria-labelledby="createShippingEntryModalLabel"
        aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h1 class="modal-title fs-5" id="createShippingEntryModalLabel">Create Shipping Entry</h1>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"
                        tabindex="-1"></button>
            </div>

            <form action="{{route('shipping-entries.store')}}" method="post">
                @csrf

                <div class="modal-body">

                    @if (isset($customer))
                        <input type="hidden" name="customer_id" value="{{$customer->id}}">
                    @endif

                    <div class="row mb-3">
                        <label for="shipping_type" class="col-md-4 col-form-label text-md-end">Ship Type</label>
                        <div class="col-md-6">
                            <select name="shipping_type" class="form-select" id="shipping_type" autofocus>
                                <option value="pickup">Pick-up</option>
                                <option value="they-ship">They ship</option>
                                <option value="we-ship">We ship</option>
                            </select>
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label for="account_title" class="col-md-4 col-form-label text-md-end">Entry Title</label>

                        <div class="col-md-6">
                            <input id="account_title" type="text"
                                    class="form-control @error('account_title') is-invalid @enderror"
                                    name="account_title" value="{{ old('account_name') }}"
                                    autocomplete="account_title">
                        </div>
                    </div>

                    <hr class="border-secondary-subtle mx-4 px-0">

                    <div class="row mb-3">
                        <label for="courier" class="col-md-4 col-form-label text-md-end">Courier</label>

                        <div class="col-md-6">
                            <input id="courier" type="text"
                                    class="form-control @error('courier') is-invalid @enderror"
                                    name="courier" value="{{ old('courier') }}"
                                    autocomplete="courier">

                            {{--                            @error('order_id')--}}
                            {{--                            <span class="invalid-feedback" role="alert">--}}
                            {{--                                        <strong>{{ $message }}</strong>--}}
                            {{--                                    </span>--}}
                            {{--                            @enderror--}}
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label for="contact" class="col-md-4 col-form-label text-md-end">Contact</label>

                        <div class="col-md-6">
                            <input id="contact" type="text"
                                    class="form-control @error('contact') is-invalid @enderror"
                                    name="contact" value="{{ old('contact') }}"
                                    autocomplete="contact" placeholder="Website link or phone number">
                        </div>
                    </div>

                    <hr class="border-secondary-subtle mx-4 px-0">

                    <div class="row mb-3">
                        <label for="account_username" class="col-md-4 col-form-label text-md-end">Username</label>

                        <div class="col-md-6">
                            <input id="account_username" type="text"
                                    class="form-control @error('account_username') is-invalid @enderror"
                                    name="account_username" value="{{ old('account_username') }}"
                                    autocomplete="account_username">
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label for="account_password" class="col-md-4 col-form-label text-md-end">Password</label>

                        <div class="col-md-6">
                            <input id="account_password" type="text"
                                    class="form-control @error('account_password') is-invalid @enderror"
                                    name="account_password" value="{{ old('password') }}"
                                    autocomplete="account_password">
                        </div>
                    </div>

                    <hr class="border-secondary-subtle mx-4 px-0">

                    <div class="row mb-3">
                        <label for="info_needed" class="col-md-4 col-form-label text-md-end">Required Info</label>

                        <div class="col-md-6">
                            <textarea name="info_needed" id="info_needed" cols="30" rows="2"
                                    class="form-control"
                                    autocomplete="info_needed">{{ old('info_needed') }}</textarea>
                        </div>
                    </div>

                    <div class="row mb-3">
                        <label for="notes" class="col-md-4 col-form-label text-md-end">Notes</label>

                        <div class="col-md-6">
                            <textarea name="notes" id="notes" cols="30" rows="3"
                                    class="form-control"
                                    autocomplete="notes">{{ old('notes') }}</textarea>
                        </div>
                    </div>

                    <div class="modal-footer">
                        <button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
                        <button type="submit" class="btn btn-primary">Create</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

