cslant/laravel-generator-advanced

View on GitHub
resources/views/shared/configurator_settings.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
<div class="fixed-plugin">
    <a class="fixed-plugin-button text-dark position-fixed px-3 py-2">
        <i class="material-icons py-2">settings</i>
    </a>
    <div class="card shadow-lg">
        <div class="card-header pb-0 pt-3">
            <div class="float-start">
                <h5 class="mt-3 mb-0">{{ __('lara-gen-adv::settings.title') }}</h5>
                <p>{{ __('lara-gen-adv::settings.see_options') }}</p>
            </div>
            <div class="float-end mt-4">
                <button class="btn btn-link text-dark p-0 fixed-plugin-close-button">
                    <i class="material-icons">clear</i>
                </button>
            </div>
            <!-- End Toggle Button -->
        </div>
        <hr class="horizontal dark my-1">
        <div class="card-body pt-sm-3 pt-0">
            <!-- Sidebar Backgrounds -->
            <div>
                <h6 class="mb-0">{{ __('lara-gen-adv::settings.sidebar.color') }}</h6>
            </div>
            <a href="javascript:void(0)" class="switch-trigger background-color">
                <div class="badge-colors my-2 text-start">
                    <span class="badge filter bg-gradient-primary active" data-color="primary" onclick="sidebarColor(this)"></span>
                    <span class="badge filter bg-gradient-dark" data-color="dark" onclick="sidebarColor(this)"></span>
                    <span class="badge filter bg-gradient-info" data-color="info" onclick="sidebarColor(this)"></span>
                    <span class="badge filter bg-gradient-success" data-color="success" onclick="sidebarColor(this)"></span>
                    <span class="badge filter bg-gradient-warning" data-color="warning" onclick="sidebarColor(this)"></span>
                    <span class="badge filter bg-gradient-danger" data-color="danger" onclick="sidebarColor(this)"></span>
                </div>
            </a>
            <!-- Sidenav Type -->
            <div class="mt-3">
                <h6 class="mb-0">{{ __('lara-gen-adv::settings.sidebar.nav_type') }}</h6>
                <p class="text-sm">{{ __('lara-gen-adv::settings.sidebar.nav_description') }}</p>
            </div>
            <div class="d-flex">
                <button class="btn bg-gradient-dark px-3 mb-2 active" data-class="bg-gradient-dark" onclick="sidebarType(this)">{{ __('lara-gen-adv::settings.sidebar.dark') }}</button>
                <button class="btn bg-gradient-dark px-3 mb-2 ms-2" data-class="bg-transparent" onclick="sidebarType(this)">{{ __('lara-gen-adv::settings.sidebar.transparent') }}</button>
                <button class="btn bg-gradient-dark px-3 mb-2 ms-2" data-class="bg-white" onclick="sidebarType(this)">{{ __('lara-gen-adv::settings.sidebar.light') }}</button>
            </div>
            <p class="text-sm d-xl-none d-block mt-2">{{ __('lara-gen-adv::settings.description') }}</p>
            <!-- Navbar Fixed -->
            <div class="mt-3 d-flex">
                <h6 class="mb-0">{{ __('lara-gen-adv::settings.sidebar.nav_fixed') }}</h6>
                <div class="form-check form-switch ps-0 ms-auto my-auto">
                    <label for="navbarFixed"></label><input class="form-check-input mt-1 ms-auto" type="checkbox" id="navbarFixed" onclick="navbarFixed(this)">
                </div>
            </div>
            <hr class="horizontal dark my-3">
            <div class="mt-2 d-flex">
                <h6 class="mb-0">{{ __('lara-gen-adv::settings.sidebar.light') }} / {{ __('lara-gen-adv::settings.sidebar.dark') }}</h6>
                <div class="form-check form-switch ps-0 ms-auto my-auto">
                    <label for="dark-version"></label><input class="form-check-input mt-1 ms-auto" type="checkbox" id="dark-version" onclick="darkMode(this)">
                </div>
            </div>
            <hr class="horizontal dark my-sm-4">
        </div>
    </div>
</div>