@extends('layouts.admin')

@section('content')

<!-- [ breadcrumb ] start -->
<div class="page-header">
    <div class="page-block">
        <div class="row align-items-center">
            <div class="col-md-12">
                <ul class="breadcrumb">
                    <li class="breadcrumb-item"><a href="{{ route('admin.dashboard') }}">হোম</a></li>
                    <li class="breadcrumb-item"><a href="javascript: void(0)">সেটিংস</a></li>
                    <li class="breadcrumb-item" aria-current="page">Admin Languages / Create</li>
                </ul>
            </div>
            <div class="col-md-12">
                <div class="page-header-title">
                    <h2 class="mb-0">Admin Languages / Create</h2>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- [ breadcrumb ] end -->

<div class="card">
    <div class="card-body">
        @include('includes.admin.form-error')
        @include('includes.admin.form-success')
        <div class="gocover" style="background: url({{asset('assets/images/'.$gs->admin_loader)}}) no-repeat scroll center center rgba(45, 45, 45, 0.5);"></div>
        <form id="geniusform" action="{{route('admin.admin_language.store')}}" method="POST" enctype="multipart/form-data">
            {{csrf_field()}}

            <div class="row">
                <div class="col-md-6 mb-3">
                    <label class="form-label">{{ __('Language') }} <span class="text-danger">*</span></label>
                    <input type="text" class="form-control" name="language" placeholder="{{ __('Language') }}" required value="English">
                    <small class="text-muted">{{ __('(In Any Language)') }}</small>
                </div>

                <div class="col-md-6 mb-3">
                    <label class="form-label">{{ __('Language Direction') }} <span class="text-danger">*</span></label>
                    <select name="rtl" class="form-select" required>
                        <option value="0">{{ __('Left To Right') }}</option>
                        <option value="1">{{ __('Right To Left') }}</option>
                    </select>
                </div>
            </div>

            <hr>
            <h4 class="text-center mb-3">{{ __('SET LANGUAGE KEYS & VALUES') }}</h4>
            <hr>

            <div class="featured-keyword-area">
                <div class="lang-tag-top-filds" id="lang-section">
                    <div class="lang-area">
                        <span class="remove lang-remove"><i class="fas fa-times"></i></span>
                        <div class="row">
                            <div class="col-lg-6">
                                <textarea name="keys[]" class="form-control mb-2" placeholder="{{__('Enter Language Key')}}" required>{{__('New Conversation(s).')}}</textarea>
                            </div>
                            <div class="col-lg-6">
                                <textarea name="values[]" class="form-control mb-2" placeholder="{{__('Enter Language Value')}}" required>{{__('New Conversation(s).')}}</textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <a href="javascript:;" id="lang-btn" class="add-fild-btn"><i class="icofont-plus"></i> {{__('Add More Field')}}</a>
            </div>

            <hr>
            <button class="btn btn-primary" type="submit">{{ __('Create Language') }}</button>
        </form>
    </div>
</div>
@endsection

@section('scripts')
<script type="text/javascript">
  "use strict";
  var lang = {
    'language_key':'{{ __('Enter Language Key') }}',
    'language_value':'{{ __('Enter Language Key') }}',
  }
</script>
<script src="{{asset('assets/admin/js/language.js')}}"></script>
@endsection