
@extends('admin.layouts.app')

@section('header-script')
    @include('admin.layouts.forms-header-script')
@endsection


@section('content')
   <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                       <div class="btn-group pull-right m-t-25">
                            <a  href="{{URL::to('admin/noticelist')}}"  class="btn btn-custom  waves-effect waves-light"  >Notice List <span class="m-l-5"><i class="fa fa-list" aria-hidden="true"></i></span></a>
                             
                        </div>
                        <h4 class="page-title">Notice's</h4>
                        <span class="clearfix"></span>
                        
                        @foreach (['danger', 'warning', 'success', 'info'] as $key)
                            @if(Session::has($key))
                                 <p class="alert alert-{{ $key }}"><i class="fa fa-info-circle"></i> {{ Session::get($key) }}</p>
                            @endif
                        @endforeach
                    </div>
                </div>
 <div class="row">
                    <div class="col-sm-12">
                        <div class="card-box">
                             

                            <h4 class="header-title m-t-0 m-b-30">Create New Notice</h4>

                            <div class="row">
                                <div class="col-lg-11">
                                    <div class="p-20">
                                      {!! Form::open(['url' => 'admin/create_notice','class'=>'form-horizontal','enctype'=>'multipart/form-data','files'=>true ]) !!}
                                  {{ csrf_field() }}
                                   
                                           
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label">Type Notice Title</label>
                                                <div class="col-lg-8">
                                                 <div class="form-group">
                                                    <input class="form-control" name="title"  type="text" required="" />
                                                     </div>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label">Notice Description</label>
                                                <div class="col-lg-8">
                                                   <div class="form-group">
                                            <div>
                                                    <textarea class="form-control" name="description" rows="5"></textarea>
                                            </div>
                                        </div>
                                                </div>
                                            </div>
                                             <div class="form-group">
                                                <label class="col-lg-4 control-label">Upload Notice File</label>
                                                <div class="col-lg-8">
                                                   <div class="form-group">
                                            <div>
                                                    <input type="file" name="file" id="filer_input2" required="" />
                                            </div>
                                        </div>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-lg-4 control-label"></label>
                                                <div class="col-lg-7">
                                                     <button type="submit" class="btn btn-custom btn-bordred waves-effect waves-light w-md m-b-5 pull-left"><i class="fa  fa-save"></i> Save</button>
                                    
                                                </div>
                                            </div>
                                       
                                     
                                {!! Form::close() !!}

                                    </div>

                                </div><!-- end col -->

                            </div><!-- end row -->
                        </div>
                    </div><!-- end col -->
                </div>
                
                  
                 
                <!-- end row -->
 @endsection

 @section('footer-script')
     @include('admin.layouts.form-elements-footer-script')
 @endsection