@extends('layouts.master')
@section('page_title')
    @if(isset($page_title))
        {{ $page_title }}
    @endif
@endsection
@section('content')
  <div class="">
    <div class="page-title">
      <div class="title_left" style="width:800px !important;">
        <ol class="breadcrumb">
          <li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
          <li class="active"><a href="{!! url('senderids') !!}">Sender IDs</a></li>
          <li class="active">Upload Sender IDs</li>
        </ol>
      </div>
    </div>
    <div class="clearfix"></div>
      <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
          <div class="x_panel">
              <div class="x_title">
                Bulk Sender ID Upload
                <div class="clearfix"></div>
              </div>
              {{-- start of content --}}
              <div class="x_content">
              <br>
              <div class="row">
                  <div class="col-md-6">
                    Sample file
                    <hr>
                    <a href="{{ url('senderids/downloadsample') }}" class="btn btn-link">Download Sample File</a>

                    <hr>
                  </div>
              </div>
              
                  {!! Form::open(['url' => 'senderids/uploadstore', 'files' => 'true', 'class' => 'form-horizontal form-label-left']) !!}
                  <div class="row">
                    <div class="col-md-6 well">
                      @include('commons.notifications')
                        <div class="form-group">
                            <div class="{{ $errors->has('senderid_file') ? 'has-error' : 'nothing'}}">
                            <label  for="senderIdFile">Sender IDs File</label>
                            {!! Form::file('senderid_file', null, ['class' => 'form-control' , 'id' => 'senderIdFile', 'placeholder' => 'Select file to upload']) !!}
                            {!! $errors->first('senderid_file', '<p class="help-block">:message</p>') !!}
                          </div>
                        </div>
                    
                      <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="">
                          <button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
                        </div>
                      </div>
                      </div>
                    </div>
                  {!! Form::close() !!}
                
                {{-- end of x_content --}}
              </div>
              {{-- end of x_panel --}}
            </div>
          </div>
          
        </div>

@endsection

@section('javascript')
<!-- <script type="text/javascript" src="{!! url('public/assets/js/senderid.js') !!}"></script> -->
<script type="text/javascript">

  $(function(){
    // $('select').select2();

  });
</script>
@endsection
