@extends('layouts.blank') @section('main_container') <div > <!-- page content --> <div id="page-wrapper"> <div > <h3 >Drivers List</h3> @if ($message = Session::get('success')) <div > <p>{{ $message }}</p> </div> @endif <div > <div data-example-id="contextual- table"> <table > <thead> <tr> <th>Driver name</th> <th>Email</th> <th>Phone</th> <th>Total Bookings</th> <th>Completed bookings</th> <th>Cancelled bookings</th> <th>Action</th> </tr> </thead> @foreach( $users as $user ) <tbody> <tr > <td>{{$user->id}}</td> <td>{{$user->name}}</td> <td>{{$user->email}}</td> <td>{{''}}</td> <td>{{''}}</td> <td>{{''}}</td> <td> <select > <option value=""></option> <option value=""><a href="{{route('toggleApprove', ['id'=>$user->id,'isApproved'=>1])}>Approve </a></option> <option><a href="{{route('toggleApprove', ['id'=>$user->id,'isApproved'=>0])}}"> Deny </a> </option> </select> </td> </tr> @endforeach @endsection