@extends('webprofile.backend.layouts.master')

@section('title')
  {{ $title }}
@stop

@section('breadcrumbs')
<li><a href="{{ url('dashboard') }}">Dashboard</a></li>
<li class="active">Ubah Kategori</li>
@stop

@section('content')
{!! Form::model($data, ['route' => ['category.update', $data->id], 'method'=>'patch', 'class'=>'form-horizontal']) !!}
{!! csrf_field() !!}
<!-- page start-->
{{-- <div class="row">
    <div class="col-md-9">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><strong>Ubah</strong> Kategori</h3>
            </div>
            <div class="panel-body">
                <div class="row">
                    <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
						Bahasa Indonesia
					</div>
                    <div class="col-md-12">
                        <div class="form-group @if ($errors->has('name')) has-error @endif">
                            <label class="col-md-2 control-label">Kategori</label>
                            <div class="col-md-10">
                                {{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
                                {{ Form::text('name', old('name'), array('class' => 'form-control')) }}
                                @if ($errors->has('name'))
                                <label id="login-error" class="error" for="login">{{$errors->first('name')}}</label>
                                @endif
                            </div>
                        </div>
                    </div>
                    <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
						English Language
					</div>
                    <div class="col-md-12">
                        <div class="form-group @if ($errors->has('name_en')) has-error @endif">
                            <label class="col-md-2 control-label">Category</label>
                            <div class="col-md-10">
                                {{ Form::text('name_en', $data->rEn ? $data->rEn->name : null, array('class' => 'form-control', 'required')) }}
                                @if ($errors->has('name_en'))
                                <label id="login-error" class="error" for="login">{{$errors->first('name_en')}}</label>
                                @endif
                            </div>
                        </div>
                    </div>

                    <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
						deutsche Sprache
					</div>
                    <div class="col-md-12">
                        <div class="form-group @if ($errors->has('name_de')) has-error @endif">
                            <label class="col-md-2 control-label">Kategorie</label>
                            <div class="col-md-10">
                                {{ Form::text('name_de', $data->rDe ? $data->rDe->name : null, array('class' => 'form-control', 'required')) }}
                                @if ($errors->has('name_de'))
                                <label id="login-error" class="error" for="login">{{$errors->first('name_de')}}</label>
                                @endif
                            </div>
                        </div>
                    </div>
                    
                    <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
						اللغة الألمانية
					</div>
                    <div class="col-md-12">
                        <div class="form-group @if ($errors->has('name_sa')) has-error @endif">
                            <label class="col-md-2 control-label">الفئة</label>
                            <div class="col-md-10">
                                {{ Form::text('name_sa', $data->rSa ? $data->rSa->name : null, array('class' => 'form-control', 'required')) }}
                                @if ($errors->has('name_sa'))
                                <label id="login-error" class="error" for="login">{{$errors->first('name_sa')}}</label>
                                @endif
                            </div>
                        </div>
                    </div>
                    
                    <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
						类别
					</div>
                    <div class="col-md-12">
                        <div class="form-group @if ($errors->has('name_zh')) has-error @endif">
                            <label class="col-md-2 control-label">类别</label>
                            <div class="col-md-10">
                                {{ Form::text('name_zh', $data->rZh ? $data->rZh->name : null, array('class' => 'form-control', 'required')) }}
                                @if ($errors->has('name_zh'))
                                <label id="login-error" class="error" for="login">{{$errors->first('name_zh')}}</label>
                                @endif
                            </div>
                        </div>
                    </div>

                    <div class="col-md-12">
                        <div class="form-group" style="padding-top: 10px;">
                            <label class="col-md-2 control-label">Status</label>
                            <div class="col-md-10">
                                <label class="switch">
                                	{{ Form::checkbox('is_active', null, null) }}
                                    <span></span>
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-9">
        <div class="panel panel-default">
            <div class="panel-footer">
            <a href="{{URL::to('webprofile/category')}}" class="btn btn-default pull-right">Batal</a>
                <button class="btn btn-info pull-right">Simpan</button>
            </div>
        </div>
    </div>
</div> --}}
<div class="tabs">                            
    <ul class="nav nav-tabs" role="tablist">
        <li class="active"><a href="#indonesia" role="tab" data-toggle="tab" aria-expanded="true">Indonesia</a></li>
        <li class=""><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="false">Inggris</a></li>
        <li class=""><a href="#jerman" role="tab" data-toggle="tab" aria-expanded="false">Jerman</a></li>
        <li class=""><a href="#arab" role="tab" data-toggle="tab" aria-expanded="false">Arab</a></li>
        <li class=""><a href="#cina" role="tab" data-toggle="tab" aria-expanded="false">Cina</a></li>
    </ul>   
    <div class="tab-content">
        <div class="tab-pane active" id="indonesia">
            <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
                Bahasa Indonesia
            </div>
            <<div class="col-md-9">
                <div class="form-group @if ($errors->has('name')) has-error @endif">
                    <label class="col-md-2 control-label">Kategori</label>
                    <div class="col-md-10">
                        {{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
                        {{ Form::text('name', old('name'), array('class' => 'form-control')) }}
                        @if ($errors->has('name'))
                        <label id="login-error" class="error" for="login">{{$errors->first('name')}}</label>
                        @endif
                    </div>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="inggris">
            <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
                English Language
            </div>
            <div class="col-md-9">
                <div class="form-group @if ($errors->has('name_en')) has-error @endif">
                    <label class="col-md-2 control-label">Category</label>
                    <div class="col-md-10">
                        {{ Form::text('name_en', $data->rEn ? $data->rEn->name : null, array('class' => 'form-control', 'required')) }}
                        @if ($errors->has('name_en'))
                        <label id="login-error" class="error" for="login">{{$errors->first('name_en')}}</label>
                        @endif
                    </div>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="jerman">
            <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
                Deutsche Sprache
            </div>
            <div class="col-md-9">
                <div class="form-group @if ($errors->has('name_de')) has-error @endif">
                    <label class="col-md-2 control-label">Kategorie</label>
                    <div class="col-md-10">
                        {{ Form::text('name_de', $data->rDe ? $data->rDe->name : null, array('class' => 'form-control', 'required')) }}
                        @if ($errors->has('name_de'))
                        <label id="login-error" class="error" for="login">{{$errors->first('name_de')}}</label>
                        @endif
                    </div>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="arab">
            <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
                اللغة العربية
            </div>
            <div class="col-md-9">
                <div class="form-group @if ($errors->has('name_sa')) has-error @endif">
                    <label class="col-md-2 control-label">الفئة</label>
                    <div class="col-md-10">
                        {{ Form::text('name_sa', $data->rSa ? $data->rSa->name : null, array('class' => 'form-control', 'required')) }}
                        @if ($errors->has('name_sa'))
                        <label id="login-error" class="error" for="login">{{$errors->first('name_sa')}}</label>
                        @endif
                    </div>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="cina">
            <div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
                中文
            </div>
            <div class="col-md-9">
                <div class="form-group @if ($errors->has('name_zh')) has-error @endif">
                    <label class="col-md-2 control-label">类别</label>
                    <div class="col-md-10">
                        {{ Form::text('name_zh', $data->rZh ? $data->rZh->name : null, array('class' => 'form-control', 'required')) }}
                        @if ($errors->has('name_zh'))
                        <label id="login-error" class="error" for="login">{{$errors->first('name_zh')}}</label>
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-9">
        <div class="form-group" style="padding-top: 10px;">
            <label class="col-md-2 control-label">Status</label>
            <div class="col-md-10">
                <label class="switch">
                    {{ Form::checkbox('is_active', null, null) }}
                    <span></span>
                </label>
            </div>
        </div>
    </div>
    <div class="col-md-9">
        <div class="panel panel-default">
            <div class="panel-footer">
            <a href="{{URL::to('webprofile/category')}}" class="btn btn-default pull-right">Batal</a>
                <button class="btn btn-info pull-right">Simpan</button>
            </div>
        </div>
    </div>
</div>
{!! Form::close() !!}
<!-- page end-->
@stop

@section('script')
{!! Html::script('https://statik.unesa.ac.id/perpus_konten_statik/admin/js/plugins/bootstrap/bootstrap-datepicker.js') !!}
{!! Html::script('https://statik.unesa.ac.id/perpus_konten_statik/admin/js/plugins/bootstrap/bootstrap-timepicker.min.js') !!}
{!! Html::script('https://statik.unesa.ac.id/perpus_konten_statik/admin/js/plugins/bootstrap/bootstrap-file-input.js') !!}
{!! Html::script('https://statik.unesa.ac.id/perpus_konten_statik/admin/js/plugins/summernote/summernote.js') !!}
@stop
