@extends(branchMenu())
@section('content')
    <?php Fun::lang()?>
    <div class="page">
        <div class=container>
            <div class="top-content">
                <div class="row">
                    <div class="col-sm-12 col-xs-12">
                        <div class="title-add">
                            <div class="pull-left">
                                <h3>{{__('administrator.customer_discount')}}</h3>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            {!! Form::open(array('route' => 'discount-customer.store','method'=>'POST','enctype'=>'multipart/form-data')) !!}
            <div class="row">
                <div class="col-sm-12">
                    <div class="master-form">
                        <div class="title-note">
                            <h3><span class="fa fa-exclamation-triangle"></span> {{__('administrator.create')}}
                                <i>({{__('administrator.fields_in_red_are_required')}})</i></h3>
                        </div>
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="col-sm-3 col-xs-12 ">
                                <label class="required" for="name">{{__('administrator.customer')}}</label>
                            </div>
                            <div class="col-sm-9">
                                {!! Form::select('customer_id[]',getCustomerNoDiscount(), null, array('class' => 'form-control ','required','multiple')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="col-sm-3 col-xs-12 ">
                                <label class="required" for="name">{{__('administrator.discount')}}</label>
                            </div>
                            <div class="col-sm-9">
                                {!! Form::select('discount_id',getDiscount(), null, array('placeholder' =>__('administrator.please_select'),'class' => 'form-control select2','required')) !!}
                            </div>
                        </div>
                        <div class="form-group col-sm-12 col-xs-12">
                            <div class="col-sm-3 col-xs-12 ">
                                <label class="" for="name">{{__('administrator.note')}}</label>
                            </div>
                            <div class="col-sm-9">
                                {!! Form::textarea('note', null, array('placeholder' => __('administrator.note'),'class' => 'form-control no-resize','','rows'=>2)) !!}
                            </div>
                        </div>

                        <div class="col-sm-12 col-xs-12">
                            <div class="form-group footer-save">
                                <button type="submit" class=" button_primary pull-right"><span
                                            class="fa fa-save"></span> {{__('administrator.save')}}</button>
                                <button type="button" onClick="history.go(-1)"
                                        class=" button_warning pull-right">
                                    <span class=" fa fa-arrow-circle-left"></span> {{__('administrator.back')}}</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {!! Form::close() !!}
        </div>
    </div>
@endsection



    

