
<div id="middleContent">                
    <!-- Main Block Start -->
    <div class="block">
        <div class="title linear-gradient">نوع المنتج: <?php echo $patient->pt_name ?></div>
        <div class="info"></div>
        <div class="content">
            <table class="patientDataGrid inlineBlock" cellspacing="0" cellpadding="0" border="0">


                <tr class="even">
                    <?php if (isset($patient->pi_name)) { ?>

                        <td class="cellTitle"> اسم الأسرة :</td>
                        <td width="98%"><?php echo $patient->pi_name ?></td>
                    <?php } ?>
                </tr>

                <tr >
                        <td class="cellTitle"> الجنسية :</td>
                        <td width="98%">سعودية</td>

                </tr>


                <tr class="even">
                    <?php if (isset($patient->pi_phone_number)) { ?>
                        <td class="cellTitle">  رقم الهاتف:</td>
                        <td width="98%"><?php echo $patient->pi_phone_number ?></td>
                    <?php } ?>
                </tr>



                <tr >
                    <?php if (isset($patient->pi_mobile_number)) { ?>

                        <td class="cellTitle"> رقم الجوال :</td>
                        <td width="98%"> 
                            <?php echo $patient->pi_mobile_number ?></td>
                    <?php } ?>
                </tr>


                <tr class="even" >
                    <?php if (isset($patient->pi_mobile_number2)) { ?>

                        <td class="cellTitle"> رقم جوال اخر :</td>
                        <td width="98%"><?php echo $patient->pi_mobile_number2 ?></td>
                    <?php } ?>
                </tr>

                <tr >

                    <?php if (isset($patient->pi_account_mail)) { ?>
                        <td class="cellTitle"> البريد الالكتروني :</td>
                        <td width="98%">
                            <a href="<?php echo $patient->pi_account_mail ?>" title="البريد الالكتروني">
                                <img src="<?= base_url() ?>global/site/images/email.png" alt=""/></a></td>
                    <?php } ?>
                </tr>



                <tr class="even">
                        <td class="cellTitle">التواصل الاجتماعي</td>
                        <td>
                            <?php if (isset($patient->pi_account_twitter)) { ?>
                                <a href="<?= "https://twitter.com/" . $patient->pi_account_twitter ?>" title="تويتر">
                                    <img src="<?= base_url() ?>global/site/images/twitter.png" alt=""/></a>
                            <?php } ?>



                            <?php if (isset($patient->pi_account_anstaqram)) { ?>
                                <a href="<?= "http://instagram.com/" . $patient->pi_account_anstaqram ?>" title="الانستجرام">
                                    <img src="<?= base_url() ?>global/site/images/instagram.png" alt=""/></a>
                            <?php } ?>

                            <?php if (isset($patient->pi_account_facebook)) { ?>
                                <a href="<?= "https://www.facebook.com/" . $patient->pi_account_facebook ?>" title="فيسبوك">
                                    <img src="<?= base_url() ?>global/site/images/facebook.png" alt=""/></a>
                            <?php } ?>
                            <img  src="<?= base_url() ?>global/site/images/whatsapp.png" alt=""/>&nbsp;&nbsp;

                        </td>

                </tr>



                <tr >
                    <?php if (isset($patient->pt_name)) { ?>

                        <td class="cellTitle"> نوع المنتج :</td>
                        <td width="98%"><?php echo $patient->pt_name ?></td>
                    <?php } ?>
                </tr>


                <tr class="even">
                    <?php if (isset($patient->pi_product_desc)) { ?>
                        <td class="cellTitle"> وصف المنتج :</td>
                        <td width="98%"><?php echo $patient->pi_product_desc ?></td>
                    <?php } ?>

                </tr>


                <tr >
                    <?php if (isset($patient->pi_production_experience)) { ?>

                        <td class="cellTitle"> سنوات الخبرة :</td>
                        <td width="98%"><?php echo $patient->pi_production_experience ?></td>
                    <?php } ?>

                </tr>

                <tr  class="even">
                    <td class="cellTitle"> ألية التسويق:</td>
                    <td width="98%">مباشر </br> شركات شحن</td>
                </tr>



            </table>

            <?php $i = 0; ?>

            <?php
            if (count($photos) != 0) {
                foreach ($photos as $rf) {
                    ?>

                    <?php if ($rf['ph_url'] != null) { ?>

            <?php if (file_exists(PUBPATH . "global/uploads/" . $rf['ph_url'])) { ?>

                            <img src="<?= base_url() ?>global/uploads/<?= $rf['ph_url'] ?>" class="patientImg inlineBlock"  alt=""/>

                            <?php } else {
                            ?>
                            <img src = "<?= base_url() ?>global/site/images/ramzya/<?= $patient->pt_img ?>"  class="patientImg inlineBlock" alt = "صورة رمزية" />
                        <?php
                        }
                    } else {
                        ?>
                        <img src="<?= base_url() ?>global/site/images/ramzya/<?= $patient->pt_img ?>"  class="patientImg inlineBlock" alt="صورة رمزية" />
                    <?php } ?>

                    <?php
                    $i++;
                    if ($i == 1) {
                        break;
                    }
                }
            } else {
                ?>
                <img src="<?= base_url() ?>global/site/images/ramzya/<?= $patient->pt_img ?>"  class="patientImg inlineBlock" alt="صورة رمزية" />

<?php }
?>

        </div>                              
    </div><!-- Main Block End -->
</div><!-- middle Column End -->