@extends('admin.admin_master')
@section('admin')


 <div class="page-content">
                    <div class="container-fluid">

                        <!-- start page title -->
                        <div class="row">
                            <div class="col-12">
                                <div class="page-title-box d-sm-flex align-items-center justify-content-between">
                                    <h4 class="mb-sm-0">All users</h4>



                                </div>
                            </div>
                        </div>
                        <!-- end page title -->

    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-body">

    <a href="{{ route('add.user') }}" class="btn btn-dark btn-rounded waves-effect waves-light" style="float:right;"><i class="fas fa-plus-circle"> Add User </i></a> <br>  <br>               

                    <h4 class="card-title">All Users Data </h4>


                    <table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
                        <thead>
                        <tr>
                            <th>Sn.</th>
                            <th>Full Name</th>
                            <th>Membership #</th>
                            <th>Mobile Number </th>
                            <th>Akiba</th> 
                            <th>Action</th>

                        </thead>


                        <tbody>

                        	
                            @foreach($pending as $key => $item)
                            
                
                        <tr>
                            <td> {{ $key+1}} </td>
                            <td> {{ $item['user']['name']." ".$item['user']['sname']." ".$item['user']['lname'] }} </td>
                            <td> {{ $item['user']['membership_no'] }} </td>
                            <td> {{ $item['user']['mobile_no'] }} </td>
                            <td> {{ number_format($item->amount) }} </td>
                            <td><a href="{{ route('review.akiba', $item->id) }}" class="btn btn-warning btn-rounded waves-effect waves-light" style="float:center;"><i class="fas fa-plus-circle"> Review </i></a>
                            </td>

                        </tr>
                        @endforeach

                        </tbody>
                    </table>

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



                    </div> <!-- container-fluid -->
                </div>


@endsection