@extends('admin.main')
@section('content')
<style>
    .additional-info{
        display:none;
    }
</style>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    <h1>
        Adding of Clipart
        <!-- <small>Optional description</small> -->
    </h1>
    <ol class="breadcrumb">
        <li><a href="{{ url ('admin') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><a href="{{ url ('admin') }}"><i class="fa fa-paint-brush"></i> Designer Management</a></li>
        <li class="active"> Add Clipart</li>
    </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <div class="box-header with-border">
                       <h4 class="box-title">Clipart</h4>
                    </div>
                    <div class="box-body">
                        <div class="row">
                            <div class="col-md-7">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        Preview
                                    </div>
                                    <div class="panel-body">
                                        <div class="canvas-container" style="width:100%">
                                            <canvas id="canvas" height="434px" style="border: 1px solid #ecf0f5;"></canvas>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- <div class="col-md-12">
                                <button type="button" id="btnClear" class="btn btn-default btn-clear" style="margin-top: 10px;">Clear Canvas</button>
                            </div> -->
                            <div class="col-md-5">
                                <form id="frm_clipart">
                                    <div class="form-group">
                                        Select clipart: (SVG Format only)
                                        <div class="row">
                                            <div class="col-sm-12">
                                                <input type="file" id="svg_clipart" name="upload_clipart" class="form-control" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="available-colors"></div>
                                    </div>
                                    <div class="additional-info">
                                        <div class="form-group">
                                            Select Category *
                                            <div class="row">
                                                <div class="col-sm-8">
                                                    <select class="form-control" name="category"  id="sel_clipart_category" style="width:100%">
                                                        @foreach($clipart_categories_array as $clipart_category)
                                                            <option value="{{  $clipart_category->Id }}">{{ $clipart_category->CategoryName }}</option>
                                                        @endforeach
                                                    </select>
                                                </div>
                                                <div class="col-sm-4">
                                                    <button type="button" class="btn btn-primary pull-right" data-toggle="modal" data-target="#modal_add_category"><i class="fa fa-plus"></i> Add Category</button>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            Tags *
                                            <div class="row">
                                                <div class="col-sm-12">
                                                    <input type="text" name="clipart_tags" id="tags" class="bootstrap-tagsinput form-control" data-role="tagsinput" placeholder="Please input tags" />
                                                </div> 
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="row">
                                            <div class="col-md-12">
                                                <button class="btn btn-primary">Save</button>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>
@endsection