@extends('app.admin.layout.layout')
@section('title',__('Blog Settings'))
@section('content')
    <style>
        .form-control{
            border-radius: 10px;
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;        }
        .form-label{
            font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
        }
        .form-select{
            background-image: none !important;
        }
        .layout-top-spacing{
            margin: 20px;
            border-radius: 15px;
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        }
    </style>
    <div class="card layout-top-spacing">
        <div class="card-header" style="background-color: #ff2a0e">
            <h5 class="m-0" style="color: white">@lang('Blog Settings')</h5>
        </div>
        <div class="card-body">
            <form class="row" action="{{ route('admin:blogSetting.update', ['id' => $blogSetting->id]) }}" method="post">
                @csrf
                @method('PUT')

                <x-admin.form.input
                    :label="__('Name Az')"
                    name="name_az"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('name_az',$blogSetting->name_az)"/>

                <x-admin.form.input
                    :label="__('Name Ru')"
                    name="name_ru"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('name_ru',$blogSetting->name_ru)"/>

                <x-admin.form.input
                    :label="__('Name En')"
                    name="name_en"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('name_en',$blogSetting->name_en)"/>

                <x-admin.form.input
                    :label="__('Title Main Az')"
                    name="titleMain_az"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleMain_az',$blogSetting->titleMain_az)"/>


                <x-admin.form.input
                    :label="__('Title Main Ru')"
                    name="titleMain_ru"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleMain_ru',$blogSetting->titleMain_ru)"/>

                <x-admin.form.input
                    :label="__('Title Main En')"
                    name="titleMain_en"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleMain_en',$blogSetting->titleMain_en)"/>

                <x-admin.form.input
                    :label="__('Title Detail Az')"
                    name="titleDetail_az"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleDetail_az',$blogSetting->titleDetail_az)"/>


                <x-admin.form.input
                    :label="__('Title Detail Ru')"
                    name="titleDetail_ru"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleDetail_ru',$blogSetting->titleDetail_ru)"/>

                <x-admin.form.input
                    :label="__('Title Detail En')"
                    name="titleDetail_en"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleDetail_en',$blogSetting->titleDetail_en)"/>

                <x-admin.form.input
                    :label="__('Title Auth Az')"
                    name="titleAuth_az"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleAuth_az',$blogSetting->titleAuth_az)"/>


                <x-admin.form.input
                    :label="__('Title Auth Ru')"
                    name="titleAuth_ru"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleAuth_ru',$blogSetting->titleAuth_ru)"/>

                <x-admin.form.input
                    :label="__('Title Auth En')"
                    name="titleAuth_en"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('titleAuth_en',$blogSetting->titleAuth_en)"/>

                <x-admin.form.input
                    :label="__('Email Main Az')"
                    name="emailMain_az"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailMain_az',$blogSetting->emailMain_az)"/>

                <x-admin.form.input
                    :label="__('Email Main Ru')"
                    name="emailMain_ru"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailMain_ru',$blogSetting->emailMain_ru)"/>

                <x-admin.form.input
                    :label="__('Email Main En')"
                    name="emailMain_en"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailMain_en',$blogSetting->emailMain_en)"/>

                <x-admin.form.input
                    :label="__('Email Title Az')"
                    name="emailTitle_az"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailTitle_az',$blogSetting->emailTitle_az)"/>

                <x-admin.form.input
                    :label="__('Email Title Ru')"
                    name="emailTitle_ru"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailTitle_ru',$blogSetting->emailTitle_ru)"/>

                <x-admin.form.input
                    :label="__('Email Title En')"
                    name="emailTitle_en"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailTitle_en',$blogSetting->emailTitle_en)"/>

                <x-admin.form.input
                    :label="__('Email Description Az')"
                    name="emailDescription_az"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailDescription_az',$blogSetting->emailDescription_az)"/>

                <x-admin.form.input
                    :label="__('Email Description Ru')"
                    name="emailDescription_ru"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailDescription_ru',$blogSetting->emailDescription_ru)"/>

                <x-admin.form.input
                    :label="__('Email Description En')"
                    name="emailDescription_en"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailDescription_en',$blogSetting->emailDescription_en)"/>

                <x-admin.form.input
                    :label="__('Email PlaceHolder Az')"
                    name="emailPlaceholder_az"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailPlaceholder_az',$blogSetting->emailPlaceholder_az)"/>

                <x-admin.form.input
                    :label="__('Email PlaceHolder Ru')"
                    name="emailPlaceholder_ru"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailPlaceholder_ru',$blogSetting->emailPlaceholder_ru)"/>

                <x-admin.form.input
                    :label="__('Email PlaceHolder En')"
                    name="emailPlaceholder_en"
                    type="text"
                    custom-div-class="col-12 col-lg-4"
                    :value="old('emailPlaceholder_en',$blogSetting->emailPlaceholder_en)"/>

                <x-admin.form.submit-button/>

            </form>
        </div>
    </div>
@endsection
@push('js')
    <script src="{{asset('/assets/admin/plugins/src/bootstrap-maxlength/bootstrap-maxlength.js')}}"></script>
    <script src="{{asset('/assets/admin/plugins/src/input-mask/jquery.inputmask.bundle.min.js')}}"></script>
    <script>
        $(document).ready(function () {
            $("#app_description,#app_name").maxlength({
                alwaysShow: true,
            });
            $("#app_phone").inputmask({mask: "+999 99 999 99 99"});
        })
    </script>
@endpush
