@extends('admin.main')
@section('content')
<style>
    .additional-info{
        display:none;
    }
</style>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    <h1>
       Upload Print Files
        <!-- <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> Print File Management</a></li>
        <li class="active">Upload Print File</li>
    </ol>
    </section>

    <!-- Main content -->
    <section class="content container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="box">
                    <form class="form-horizontal" id="frm_upload_print_files"  enctype="multipart/form-data">
                        <div class="box-header with-border">
                            <h4 class="box-title">Upload Print File</h4>
                        </div>
                        <div class="box-body">
                            <div id="create_store_msg"></div>
                            <div class="col-lg-8 col-sm-8">
                                <div class="form-group">
                                    <label  class="col-sm-4 control-label">Select Visualizer</label>
                                    <div class="col-sm-8">
                                        <select class="form-control"  name="print_file_for">
                                            @foreach ($vilualizer_array as $item)
                                                <option value="{{ $item->TemplateCode }}">{{ $item->TemplateCode . " -- " .  $item->TemplateName  }}</option>
                                            @endforeach
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label  class="col-sm-4 control-label">Select Type</label>
                                    <div class="col-sm-8">
                                        <select class="form-control" name="print_file_type">
                                            <option>Jersey</option>
                                            <option>Shorts</option>
                                            <option>Shirts</option>
											<option>Mask</option>
                                        </select>
                                    </div>
                                </div>
                                
                                <div class="form-group">
                                    <label  class="col-sm-4 control-label">Print File(s)</label>
                                    <div class="col-sm-8">
                                        <input type="file" id="uploadPrintFiles" class="form-control" name="uploadPrintFiles[]" multiple required/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label  class="col-sm-4 control-label">&nbsp;</label>
                                    <div class="col-sm-8">
                                        <div class="row">
                                            <div id="image_preview"></div>
                                        </div>
                                       
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="box-footer">
                            <div class="col-sm-8">
                                <div class="form-group">
                                    <label  class="col-sm-4 control-label">&nbsp;</label>
                                    <div class="col-sm-8">
                                        <button type="submit" id="submitSaveBtn" class="btn btn-primary" style="width: 100px;">Save</button>
                                        <button type="button" onclick="cancelButton();" class="btn btn-default">Cancel</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>
@endsection