<?php $cr=mysqli_query($GLOBALS['con'],"SELECT * FROM `brokers` WHERE `broker_number`='".$_REQUEST['broker_number']."'")or die(mysqli_error($GLOBALS['con']));
$cd=mysqli_fetch_array($cr);?>
<div id="printbox">
    <div class="row mb-4 mt-0 mt-md-n5">
        <script>
        $('#navBox').html(
            '<li class="breadcrumb-item"><a href="index.php?t=includes/master&p=broker.php&view=list>Brokers</a><i class="fad fa-angle-double-right mx-2 mt-1"" aria-hidden="true"></i></li><li class="breadcrumb-item"><a href="index.php?t=includes/master&p=broker.php&broker_number=<?= $_REQUEST['broker_number']?>&view=load">View Broker</a><i class="fad fa-angle-double-right mx-2 mt-1"" aria-hidden="true"></i></li><li class="breadcrumb-item active"><a href="javascript:void(0)"><?= $cd['broker_name']?></a></li>'
        )
        </script>
        <div class="col-12 col-md-12">
            <div class="float-end"><a id="phone" href="tel:<?= $cd['tel']?>" class="btn-sm btn btn-secondary m-0 px-3 waves-effect waves-light noprint"><i class="fad fa-phone"></i></a> <a
                   href="index.php?t=includes/master&p=broker.php&broker_number=<?= $_REQUEST['broker_number']?>&view=edit" class="btn-sm btn btn-secondary m-0 px-3 waves-effect waves-light noprint"><i class="fad fa-edit"></i></a> <a
                   href="#" class="btn-sm btn btn-secondary m-0 px-3 waves-effect waves-light noprint emailButton" data-values="<?= $cd['broker_number']?>|<?= $cd['pri_contact']?>|<?= $cd['email']?>|<?= $cd['broker_name']?>"
                   data-href="<?=ROOT_URL?>/includes/master/mailer.php"><i class="fad fa-envelope"></i></a> <a id="print" href="#" class="btn-sm btn btn-secondary m-0 px-3 waves-effect waves-light noprint"><i class="fad fa-print"></i></a>
                <a href="#"
                   class="btn-sm btn btn-secondary m-0 px-3 waves-effect waves-light noprint"><i class="fad fa-archive"></i></a>
            </div>
        </div>
    </div>


    <div class="col-12 col-md-12">

        <div class="col-12 col-md-12">
            <div class="card">
                <div class="card-header">broker Details</div>
                <div class="card-body">
                    <div class="col-12 col-md-6">
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">ID</div>
                            <div class="col-12 col-md-9"><?= $cd['broker_number']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">Name</div>
                            <div class="col-12 col-md-9"><?= $cd['broker_name']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">Address1</div>
                            <div class="col-12 col-md-9"><?= $cd['address1']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">Address2</div>
                            <div class="col-12 col-md-9"><?= $cd['address2']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">town</div>
                            <div class="col-12 col-md-9"><?= $cd['town']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">County</div>
                            <div class="col-12 col-md-9"><?= $cd['county']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">Post Code</div>
                            <div class="col-12 col-md-9"><?= $cd['post']?></div>
                        </div>
                    </div>
                    <div class="col-12 col-md-6">
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">Tel</div>
                            <div class="col-12 col-md-9"><?= $cd['tel']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">Fax</div>
                            <div class="col-12 col-md-9"><?= $cd['fax']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">Email</div>
                            <div class="col-12 col-md-9"><?= $cd['email']?></div>
                        </div>
                        <div class="row row-striped">
                            <div class="col-12 col-md-3 title">Commission Rate</div>
                            <div class="col-12 col-md-9"><?= $cd['commission_rate']?></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>