@extends('admin/layouts/default')
{{-- Page title --}}
@section('title')
Add Indexing Agencies
@parent
@stop
{{-- page level styles --}}
@section('header_styles')
@include('admin.layouts.css')
<link rel="stylesheet" href="{{ asset('assets/vendors/bootstrap-tagsinput/css/bootstrap-tagsinput.css') }}" />
<link rel="stylesheet" href="{{ asset('assets/vendors/bootstrap-tagsinput/css/app.css') }}" />
<script type="text/javascript" src="{!! asset('js/angular.js') !!}"></script>

<!-- end of page level css-->
@stop
{{-- Page content --}}
@section('content')
<section class="content-header">
    <!--section starts-->
    <h1>Add New Indexing Agencies</h1>
    <ol class="breadcrumb">
        <li>
            <a href="{{ route('admin.dashboard') }}">
                <i class="livicon" data-name="home" data-size="14" data-loop="true"></i>
                Dashboard
            </a>
        </li>
        <li><a href="{{ URL::to('admin/indexing_agencies') }}">Indexing Agencies List</a></li>
        <li class="active">
            Add New Indexing Agencies
        </li>
    </ol>
</section>
<!--section ends-->
<section class="content paddingleft_right15">
    <!--main content-->
    <div class="row">
        <div class="panel panel-primary ">
            <div class="panel-heading">
                <h3 class="panel-title">
                    Indexing Agencies Form
                </h3>
            </div>
            <div class="panel-body">
                <div id="banner" class="panel">
                    <div class="panel-body">
                        <form name="first" method="post" action="{{ route('indexing_agencies.store') }}" enctype="multipart/form-data">

                            <input type="hidden" name="_token" value="<?= csrf_token() ?>">
                            <div class="form-group col-md-12">
                                <label for="e1" class="control-label">Index Title: *</label>
                                <input type="text" class="form-control" name="title" required="required">
                            </div>

                            <div class="form-group col-md-12">
                                <label for="e1" class="control-label">Description:</label>
                                <div class='box-body box_content'>
                                    <textarea class="form-control resize_vertical" id="description" name="description" placeholder="" rows="5"></textarea>
                                </div>
                            </div>

                            <div class="form-group col-md-12">
                                <label for="e1" class="control-label">Sequence:</label>
                                <input type="number" class="form-control" name="sequence" required="required">
                            </div>

                            <div class="form-group col-md-12">
                                <label for="e1" class="control-label">Indexing Parent:</label>
                                <section class="scroll-fix">
                                    <select id="indexing_id" class="form-control select2" name="indexing">
                                        @foreach ($indexing_list as $key => $value)
                                        <option value="{{$key}}">{{$value}}</option>
                                        @endforeach
                                    </select>
                                </section>
                            </div>

                            <div class="form-group text-center col-md-12">
                                <button class="btn btn-primary text-center" type="submit">Submit</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    <!--main content ends-->
</section>
<!-- content -->
@stop

{{-- page level scripts --}}
@section('footer_scripts')
@include('admin.layouts.js')
<script src="{!! asset('assets/vendors/select2/js/select2.js') !!}"></script>
<script src="{!! asset('js/filter.js') !!}"></script>
<script>
    $("#indexing_id").select2({
        theme: "bootstrap",
        width: '100%',
        height: '50px'
    });
</script>
@stop