<?php $companies = array("Goodwin-Friesen","Cruickshank-White","Connelly-Monahan","Haley Inc","Klocko LLC", "Bergstrom-Langosh", "Corwin PLC","Hintz and Sons","Witting-Johnston","Dibbert-Boyle"); ?>
<div class="row">
    <div class="col-md-12">
        <div class="row">
            <div class="col-sm-4 col-md-3">
                <select name="contactList_filter" id="contactList_filter" class="form-control input-sm">
                    <option value="">-- Select Company --</option>
<?php $count_companies = count($companies); for($i=0;$i<$count_companies;$i++) { ?>
                	<option value="<?php echo $companies[$i]; ?>"><?php echo $companies[$i]; ?></option>
<?php }; ?>
                </select>
            </div>
            <div class="col-sm-4 col-md-3">
                <select name="contactList_sort" id="contactList_sort" class="form-control input-sm">
                    <option value="" selected>-- Sort by --</option>
                    <option value="name">Name</option>
                    <option value="name_desc">Name (desc)</option>
                    <option value="company">Company</option>
                    <option value="company_desc">Company (desc)</option>
                </select>
            </div>
            <div class="col-sm-4 col-md-3">
                <input type="text" name="contactList_search" id="contactList_search" class="form-control input-sm" placeholder="Find user...">
            </div>
        </div>
        <hr/>
        <ul class="contact_list">
<?php for($i=1;$i<65;$i++) { $rand_n = rand(1,12); $user_n = $faker->name; $company_n = $companies[array_rand($companies)]; ?>
            <li class="contact_item" data-groups='["<?php echo $company_n; ?>"]' data-name="<?php echo $user_n; ?>"
                data-company="<?php echo $company_n; ?>">
                <a href="#">
                    <img class="img-circle" src="assets/img/avatars/avatar<?php if($rand_n<10) { echo '0'; }; echo $rand_n; ?>_tn.png" alt=""/>
                    <span class="contact_content">
                        <h2><?php echo $user_n; ?></h2>
                        <span class="text-muted"><?php echo $company_n; ?></span>
                        <small class="text-muted"><?php echo $faker->email; ?></small>
                    </span>
                </a>
            </li>
<?php }; ?>
        </ul>
    </div>
</div>