@extends('admin.main')
@section('content')
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
    <h1>
        Edit Overlay Pattern
        <!-- <small>Optional description</small> -->
    </h1>
    <ol class="breadcrumb">
        <li><a href="{{ url ('admin') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li class="active"> Edit Overlay Pattern</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_edit_store"  enctype="multipart/form-data">
                        <input type="hidden" class="form-control" value="{{ $pattern_array[0]->Id }}" name="store_id" reqiured="required" />
                        <div class="box-header with-border">
                            <h4 class="box-title">Edit Overlay Pattern</h4>
                        </div>
                        <div class="box-body">
                            <div id="edit_store_msg"></div>
                            <div class="col-lg-8 col-sm-8">
                                <div class="form-group">
                                    <label  class="col-sm-4 control-label">Overlay Pattern Name</label>
                                    <div class="col-sm-8">
                                        <input type="text" class="form-control" id="store_name" value="{{ $pattern_array[0]->PatternName }}" name="overlay_pattern_name" placeholder="Overlay Pattern Name" reqiured="required" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-4 control-label">With Gradient</label>
                                    <div class="col-sm-8">
                                        <div class="checkbox">
                                            <input type="checkbox" @if($pattern_array[0]->Gradient == 'TRUE') checked @endif name="set_store_password" data-toggle="toggle" data-width="100px" data-on="<i class='fa fa-check-circle'></i> Yes" data-off="<i class='fa fa-ban'></i> No" data-size="small">
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label  class="col-sm-4 control-label">No. of Color</label>
                                    <div class="col-sm-8">
                                        <input type="number" class="form-control" id="store_name" value="{{ $pattern_array[0]->NoOFColor }}" name="store_name" placeholder="No. of Color" reqiured="required" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label  class="col-sm-4 control-label"></label>
                                    <div class="col-sm-8">
                                        <button type="button" id="btn_delete_overlay_pattern" data-store-id="{{ $pattern_array[0]->Id }}" class="btn btn-danger pull-right"><i class="fa fa-trash"></i> Delete this Overlay Pattern</button>
                                    </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="btn_update_store" class="btn btn-primary" style="width: 100px;">Save Changes</button>
                                        <a href="{{ url('admin/overlay-pattern') }}" type="button" class="btn btn-default">Cancel</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div><!-- box  -->
            </div>
        </div>
    </section>
    <!-- /.content -->
</div>
@endsection