@extends('layouts.inner')





@section('content')


<style>


    table{


    width: 100% !important;


}


.profile-mod-box table {border-collapse:collapse;border-spacing:0; width: 100% !important; margin-bottom:30px;}


.profile-mod-box table.table tr th {background:#FF6800; color: #fff;font-size: 16px;border: 1px solid #EEEFF1;font-weight: 400;}


.profile-mod-box th, td{text-align: center; color: #64656A; padding:10px;border: 1px solid #000000;}.examination-scheme-right td strong{color: #64656A;}


.profile-mod-box tr:nth-child(even){background-color:#ffffff}


</style>


<section id="lalit-mod">


@include('layouts.common_header')





    <div class="lalit-mod">





@include('container.left')





<div class="lalit-mod-right">


   <!-- @php  if(Auth::user()->role==1) { $urlProfile= 'superadmin'; } elseif(Auth::user()->role==2) { $urlProfile= 'admin'; } elseif(Auth::user()->role==3) { $urlProfile= 'staff'; } elseif(Auth::user()->role==4) { $urlProfile= 'client'; }  @endphp -->


    <div class="submitted-reports-mod">


    @if ($errors->any())


            <div class="alert alert-danger" style="color: red;">


                <ul>


                    @foreach ($errors->all() as $error)


                    <li>{{ $error }}</li>


                    @endforeach


                </ul>


            </div>


            @endif


    <form method="post" action="{{url('superadmin')}}/addRole" enctype="multipart/form-data">


        <input type="hidden" name="added_by" value="{{Auth::user()->name}}">


        <input type="hidden" name="role_id" value="{{Auth::user()->role}}">


    @csrf


        <div class="profile-mod-frame">


            <div class="scrollbar-1">


                <div class="profile-mod-box">


                    <div class="profile-mod-box-left">


                        <h3>Role Name</h3>


                        


                    </div>


                    <div class="profile-mod-box-right">





                        <div class="profile-form-box">


                            <div class="profile-contact-form-box">


                                 <input type="text" placeholder=" " value=" " name="name" required="">


                            </div>


                        </div>


                        <div class="profile-form-box">


                            <div class="profile-contact-form-box">


                                <button style="margin: 0px;" type="submit" name="en" class="submit-now"> Submit</button>


                            </div>


                        </div>


                        


                    </div>


                </div>


                <!---END-->


                @if(count($roledata) > 0)


                <table>


                        <tr>


                           


                           <th>Name</th>


                           <!-- <th>Edit</th> -->


                           <!-- <th>Delete</th> -->


                       </tr>


                        @foreach($roledata as $key=>$value)


                            <tr>


                             <td>{{$value['name']}}</td>


                                <!-- <td>Edit</td> -->


                              <!-- <td><a onclick="return confirm('Are you sure?')" href="{{url('superadmin/delete')}}/{{$value['id']}}">Delete</a></td> -->


                            </tr>


                            @endforeach


                        </table>


                 @endif       


            </div>


        </div>


        


        <!---frame END-->


    </form>


    


    </div>


    <!---END-->








</div>


<!---right END-->





</div>


</section>


@endsection