@extends('admin')
   
@section('css')
<link href="{{ asset('plugins/datatables/css/jquery.dataTables.css')}}" rel="stylesheet">
<link href="{{ asset('/css/bootstrapValidator.min.css')}}" rel="stylesheet">
@endsection

@section('content')
   @include('admin_header')

    <div id="wrapper">

        <!--Responsive navigation button-->  
        <div class="resBtn">
            <a href="#"><span class="icon16 minia-icon-list-3"></span></a>
        </div>
        
        <!--Left Sidebar collapse button-->  
        <div class="collapseBtn leftbar">
             <a href="#" class="tipR" title="Hide Left Sidebar"><span class="icon12 minia-icon-layout"></span></a>
        </div>

        <!--Sidebar background-->
        <div id="sidebarbg"></div>
        <!--Sidebar content-->
       @include('admin_left_menu')
            <div id="content" class="clearfix">
                
            
          <div class="col-md-12">
              <div class="heading"><h3>My Roles</h3></div>
          </div>
                 <div class="col-md-12 reul_msg">
          @if (Session::get('error_msg'))
              <div class="alert alert-danger clearfix">
                 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                   <span aria-hidden="true">&times;</span>
                 </button>
                  {{Session::get('error_msg')}}
              </div>
          @endif
          @if (Session::get('succ_msg'))
              <div class="alert alert-success clearfix">
                 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                   <span aria-hidden="true">&times;</span>
                 </button>
                  {{Session::get('succ_msg')}}
              </div>
          @endif
          </div>
                
                @foreach($user_info as $social_data)

                <!--user form start-->
                <form class="" name="signup" id="signupForm"  method="post">
          <div class="form">
         

            <div class="col-sm-4">
              <div class="form-group">
                <input type="text" class="form-control" placeholder="Role" name="name" value="{{ isset($social_data->name) ? $social_data->name:'' }}">
                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                  <input type="hidden" name="role_id" value="{{ isset($social_data->id) ? $social_data->id:'' }}">
              </div>
            </div>
         
           
           
            <div class="clearfix"></div>

            
            
            <div class="col-sm-1">
                <button type="submit" class="form-control pull-right btn-info" name="Update" value="Store">Update</button>
            </div>
          </div>
        </form>  
             @endforeach   
       
            </div>
    </div><!-- End #wrapper -->
    @endsection
    @section('js')
   
  <script src="{{ asset('plugins/datatables/js/jquery.dataTables.js')}}"></script>
    <script src="{{ asset('js/maskedinput/jquery.maskedinput.min.js')}}"></script>
    <script src="{{ asset('js/bootbox.js')}}"></script>
    <script src="{{ asset('js/validation.js')}}"></script>
 
      
   
    @endsection