<div class="modal fade" id="branding-logo" tabindex="-1" role="dialog" aria-labelledby="branding-logo-Title"
    aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">

        <div class="modal-content custom-rounded-edges">
            <div class="modal-header">
                <form action=""></form>
                <h5 class="modal-title" id="branding-logo-Title">
                    Branding Logo
                </h5>

                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <form id="branding-form" enctype="multipart/form-data" data-url="{{ route('branding.update') }}"
                data-delete="{{ route('branding.destroy') }}">
                @csrf
                <div class="modal-body">
                    <div class="form-group">
                        <div class="d-flex justify-content-center">
                            <img id="displayImage"
                                src="{{ !is_null(getSettingsValue('system_logo')) ? getSystemLogo() : get_asset('dist/images/2.png') }}"
                                alt="Selected Image" class="centered-image my-2 mx-2" style="
                                max-width: 100%;
                                max-height: 100%;
                            " data-width="{{ config('srm_config.dashboard.system_logo.width', 370) }}"
                                data-height="{{ config('srm_config.dashboard.system_logo.height', 70) }}"
                                data-original-src="{{ get_asset('dist/images/srm-logo.jpg') }}" />
                        </div>

                        <div class="input-group">
                            <div class="custom-file">
                                <input type="file" class="custom-file-input" id="logo" accept="image/*" name="logo"
                                    oninput="displaySelectedImage()" />
                                <label class="custom-file-label" for="logo" id="logoLabel">Choose an
                                    Image</label>
                            </div>

                            <span class="tool-question mx-2 d-flex align-items-center" data-toggle="tooltip"
                                data-placement="top" @if(!is_null(config('srm_config.dashboard.system_logo')))
                                title="Replace the default system logo by uploading your own image. Ensure your logo should have the following dimension {{ config('srm_config.dashboard.system_logo.width', 370) }} X {{ config('srm_config.dashboard.system_logo.height', 70) }}">
                                @endif
                                <i class="fa-solid fa-circle-question"></i>
                            </span>
                        </div>
                    </div>
                    <div class="text-center">
                        <input type="button" class="btn btn-primary mx-2 px-5 py-2" value="Save and apply"
                            id="saveBtn-Logo">

                        <input type="button" class="btn btn-danger mx-2 px-5 py-2" id="cancelBtn-Logo" value="Delete">

                    </div>
                </div>

                <div class="mx-4 my-4">
                    <div id="confirm-Logo" class="alert bootstrap-alert-success my-2" role="alert"
                        style="display: none">
                    </div>

                    <div id="error-Logo" class="alert bootstrap-alert-danger my-2" role="alert" style="display: none">
                    </div>

                </div>

            </form>


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