{% set user = __SELF__.user %}
     <!-- Breadcumb Area -->
     <div class="breadcumb_area">
        <div class="container h-100">
            <div class="row h-100 align-items-center">
                <div class="col-12">
                    <h5>Dükanyň sazlamalary</h5>
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="{{ 'index'|page }}">Esasy sahypa</a></li>
                        <li class="breadcrumb-item active">{{ user.name }}</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
    <!-- Breadcumb Area -->

    <!-- My Account Area -->
    <section class="my-account-area section_padding_50">
        <div class="container">
            <div class="row">


                <div class="col-12 col-lg-12">
                    <div class="my-account-content mb-50">
        
                        <div class="single_catagory_slide">
                            <a href="{{ 'user-profile'|page({id: user.id}) }}" style="display: inline;">
                                <img src="{{ user.logo|media|resize(127, 127, { mode: 'crop' }) }}" alt="Gurluşyk, Gurluşyk platform, bezeg gurluşyk, gipsler merkezi, {{ user.name }}">
                            </a>
                            <p class="mt-3">{{ user.name }}</p>
                        </div>
                    </div>
                </div>



                <div class="col-12 col-lg-12">
                    <div class="my-account-content mb-50">
                        <h5 class="mb-3">Dükan maglumatlary</h5>

                        <form action="#" method="post" id="vendorForm"
                                data-request="onSave"
                                data-request-flash
                                data-request-validate
                                data-request-files
                                data-request-success="resetForm()"
                                data-request-error="resetForm()"
                        >
                            <div class="row">
                                <div class="col-12 col-lg-6">
                                    <div class="form-group">
                                        <label for="firstName">Dükanyň ady</label>
                                        <input type="text" class="form-control" name="vendorName" id="vendorName" value="{{ user.shop_title }}" placeholder="Dükanyň ady" required>
                                    </div>
                                </div>
                                <div class="col-12 col-lg-6">
                                    <div class="form-group">
                                        <label for="lastName">Slogan</label>
                                        <input type="text" class="form-control" name="slogan" id="slogan" value="{{ user.slogan }}" placeholder="Slogan" required>
                                    </div>
                                </div>
                                <div class="col-12">
                                    <div class="form-group">
                                        <label for="displayName">Iş wagty</label>
                                        <input type="text" class="form-control" name="workTime" id="workTime"  value="{{ user.work_time }}" placeholder="Iş wagty" required>
                                    </div>
                                </div>
                                <div class="col-12">
                                    <div class="form-group">
                                        <label for="emailAddress">Beýan</label>
                                        <input type="text" class="form-control" name="description" id="description" value="{{ user.description }}" placeholder="Beýan" required>
                                    </div>
                                </div>
                                <div class="col-12">
                                    <button type="submit" class="btn btn-primary">Üýtgetmek</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- My Account Area -->

{% put scripts %}
<script>
    function resetForm() {
        document.getElementById('vendorForm').reset(); // Reset the form
    }
</script>
{% endput %}