

<!-- Dashboard content -->
<div class="row">


    <div class="col-lg-8"> 
        <!-- Search Form  -->


        <div class="panel panel-flat">

            <div class="panel-body">           

                <form class="form-horizontal" action="#" method='POST'>
                    <fieldset class="content-group">
                        <legend class="text-bold">Find Transporter</legend>

                        <div class="form-group">
                            <label class="control-label col-lg-2">
                                Search By 
                            </label>
                            <div class="col-lg-3">
                                <select class="form-control" name ='searchparam'>
                                    <option value="transporter">Transporter</option>                                  
                                    <option value="email">Email</option>
                                    <option value="phone">Phone Number</option>
                                    <option value="zipcode">Zip Code</option>                                   
                                </select>
                            </div>
                            <div class="col-lg-5">
                                <input type="text" class="form-control" placeholder='Enter Search Text' name="searchtext" value='<?= $searchtext ?>'>
                            </div>         
                            <div class="col-lg-2">
                                <button type="submit" class="btn btn-primary">Submit <i class="icon-arrow-right14 position-right"></i></button>
                            </div> 
                        </div>      
                    </fieldset>
                </form>
            </div>
        </div>
        <!-- /Search Form -->

        <!-- Result Form -->

        <div class="panel panel-flat">   
            <div class="panel-body">


                <!-- Support tickets -->

                <div class="table-responsive">
                    <table class="table text-stripped">
                        <thead>
                            <tr>
                                <th style="width: 100px">Phone</th>
                                <th style="width: 100px">Interpreter</th>
                                <th style="width: 300px;">Agent</th>
                                <th>Address</th>
                                <th class="text-center" style="width: 20px;"><i class="icon-arrow-down12"></i></th>
                            </tr>
                        </thead>
                        <tbody>


                            <?
                            foreach ($agent_search as $rest) {
                                ?>

                                <tr>
                                    <td class="text-center">
                                        <h6 class="no-margin"><?= $rest->phone ?> <small class="display-block text-size-small no-margin"><a href='#' onclick="openTransporterID(<? echo $rest->id; ?>);" >Select</a></small></h6>
                                    </td>

                                    <td>       
                                        <div class="media-body">                                           
                                            <?= $rest->firstname ?> <?= $rest->lastname ?>
                                        </div>
                                    </td>


                                    <td>       
                                        <div class="media-body">
                                            <a href="#" onclick="openTranspID(<? echo $rest->id; ?>);" class="display-inline-block text-default text-semibold letter-icon-title"><?= $rest->agent_name ?> </a>
                                            <div class="text-muted text-size-small"> <?= $rest->username ?></div>
                                        </div>
                                    </td>
                                    <td>
                                        <a href="#" class="text-default display-inline-block">
                                            <span class="text-semibold"><?= $rest->street ?></span>
                                            <span class="display-block text-muted"> <?= $rest->city ?>  <?= $rest->state ?>  <?= $rest->zipcode ?></span>
                                        </a>
                                    </td>
                                    <td class="text-center">
                                        <ul class="icons-list">
                                            <li class="dropdown">
                                                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i></a>
                                                <ul class="dropdown-menu dropdown-menu-right">
                                                    <li><a href="#"><i class="icon-undo"></i> Quick reply</a></li>
                                                    <li><a href="#"><i class="icon-history"></i> Full history</a></li>
                                                    <li class="divider"></li>
                                                    <li><a href="#"><i class="icon-checkmark3 text-success"></i> Resolve issue</a></li>
                                                    <li><a href="#"><i class="icon-cross2 text-danger"></i> Close issue</a></li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </td>
                                </tr>                   


                                <?
                            }
                            ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <!-- /support tickets -->

        </div>
        <!-- /Result Form -->


    </div>




    <div class="col-lg-4">
        <? include 'recent_transporter_side_list.php'; ?>
    </div>
</div>
<!-- /dashboard content -->

