@extends('layouts.inner')



@section('content')



<section id="lalit-mod">

    @include('layouts.common_header')



    <div class="lalit-mod">



        @include('container.left')



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



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



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

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

                        <input type="text" placeholder="Search ..." name="name" required="" style="">

                    </div>

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

                        <input type="text" placeholder="Date" name="name" required="" style="">

                    </div>

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

                        <div class="ding">

                            <select id="wiki">

                                <option value="none"> Select Status </option>

                                <option value="All" selected> Status: All</option>

                            </select>

                        </div>

                    </div>



                </div>

                <!---END-->

                <div class="my-follow-ups-mod-box">



                    <div class="my-follow-ups-mod-head">

                        <div class="my-follow-ups-topbox1">Name</div>

                        <div class="my-follow-ups-topbox1">Email</div>

                        <div class="my-follow-ups-topbox2">Role</div>

                        <!-- <div class="my-follow-ups-topbox3">Date</div> -->

                        <!-- <div class="my-follow-ups-topbox4">Status</div> -->

                        <div class="my-follow-ups-topbox5">Action</div>

                    </div>



                    <div class="scrollbar-1">



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

                        @php if($value->role==2) { $urlProfile= 'admin'; } elseif($value->role==3) { $urlProfile=
                        'staff'; } elseif($value->role==4) { $urlProfile= 'client'; } elseif($value->role==5) {
                        $urlProfile= 'manager'; } elseif($value->role==6) { $urlProfile= 'supervisor'; }
                        elseif($value->role==7) { $urlProfile= 'hod'; } elseif($value->role==8) { $urlProfile=
                        'corporate_training'; } @endphp

                        <div class="my-follow-ups-doc-mod">

                            <div class="my-follow-ups-name">

                                <img src="{{asset('frontend/images/2024/01/report-icon.png')}}">

                                {{$value->name}}

                            </div>

                            <div class="my-follow-ups-name">

                                <img src="{{asset('frontend/images/2024/01/report-icon.png')}}">

                                {{$value->email}}

                            </div>

                            <div class="my-follow-ups-modtext">

                                @if($value->role==1) Superadmin @elseif($value->role==2)

                                Admin @elseif($value->role==3) Staff @elseif($value->role==4) Client
                                @elseif($value->role==5) Manager @elseif($value->role==6) Supervisor
                                @elseif($value->role==7) HOD @elseif($value->role==8) Corporate Trainer @endif

                            </div>

                            <!-- <div class="my-follow-ups-date">{{$value->created_at}}</div> -->

                            <!-- <div class="my-follow-ups-completed">Filled</div> -->

                            <div class="my-follow-ups-view">

                                <a onclick="return confirm('Are you sure?')"
                                    href='{{url("superadmin/userdelete")}}/{{$value->id}}' class="view">Delete</a>

                                <!-- <a href="{{url("superadmin")}}/profile"> Edit </a>    -->

                            </div>

                        </div>

                        <!---Box END-->

                        @endforeach

                    </div>

                    <!---Report END-->

                </div>

            </div>

            <!---END-->

        </div>



    </div>

</section>

@endsection