<div class="temp1" ><!-- Paper1 Start -->
    <?php
    foreach ($family as $fa) {
        ?>
        <?php if ($fa['ph_url'] != null) { ?>
            <?php if (file_exists(PUBPATH . "global/uploads/" . $fa['ph_url'])) { ?>
                <div class="field">
                    <img src="<?= base_url() ?>global/uploads/<?php echo $fa['ph_url'] ?>" class="img" alt=""/>
                    <p>الاسم : <span><?= $fa['fa_name'] ?></span></p>
                    <p>المنطقة : <span><?= $fa['ar_name'] ?></span></p>
                    <p>اسم المنتج : <span><?= $fa['pt_name'] ?></span></p>
                    <p>الية التسويق : <span>مباشر - شركات شحن</span></p>
                    <p> رقم الهاتف - الجوال: <span><?= $fa['fa_mobile_number'] ?></span></p>               
                    <p>وسيلة التواصل الإجتماعي : 
                        <span style="direction:ltr;text-align:right;clear:left;display:block;margin:0 -5mm 0 0">
                            <?php if (isset($fa['fa_account_facebook'])) { ?>
                                <?= $fa['fa_account_facebook'] ?> - <img src="<?= base_url() ?>global/modules/print/images/facebook.png" alt="" />
                            <?php } ?>

                            <?php if (isset($fa['fa_account_anstaqram'])) { ?>
                                <?= $fa['fa_account_anstaqram'] ?> - <img src="<?= base_url() ?>global/modules/print/images/instagram.png" alt="" />
                            <?php } ?>

                            <?php if (isset($fa['fa_account_twitter'])) { ?>
                                <?= $fa['fa_account_twitter'] ?> - <img src="<?= base_url() ?>global/modules/print/images/twitter.png" alt="" />
                            <?php } ?>

                            <img src="<?= base_url() ?>global/modules/print/images/whatsapp.png" alt="" />
                        </span>
                    </p>

                </div>
            <?php } else {
                ?>
                <div class="field">

                    <img src="<?= base_url() ?>global/site/images/ramzya/<?= $fa['pt_img'] ?>" class="img" />
                    <p>الاسم : <span><?= $fa['fa_name'] ?></span></p>
                    <p>المنطقة : <span><?= $fa['ar_name'] ?></span></p>
                    <p>اسم المنتج : <span><?= $fa['pt_name'] ?></span></p>
                    <p>الية التسويق : <span>مباشر - شركات شحن</span></p>
                    <p> رقم الهاتف - الجوال: <span><?= $fa['fa_mobile_number'] ?></span></p>               
                    <p>وسيلة التواصل الإجتماعي : 
                        <span style="direction:ltr;text-align:right;clear:left;display:block;margin:0 -5mm 0 0">
                            <?php if (isset($fa['fa_account_facebook'])) { ?>
                                <?= $fa['fa_account_facebook'] ?> - <img src="<?= base_url() ?>global/modules/print/images/facebook.png" alt="" />
                            <?php } ?>

                            <?php if (isset($fa['fa_account_anstaqram'])) { ?>
                                <?= $fa['fa_account_anstaqram'] ?> - <img src="<?= base_url() ?>global/modules/print/images/instagram.png" alt="" />
                            <?php } ?>

                            <?php if (isset($fa['fa_account_twitter'])) { ?>
                                <?= $fa['fa_account_twitter'] ?> - <img src="<?= base_url() ?>global/modules/print/images/twitter.png" alt="" />
                            <?php } ?>

                            <img src="<?= base_url() ?>global/modules/print/images/whatsapp.png" alt="" />
                        </span>
                    </p>

                </div>

                <?php
            }
        } else {
            ?>
            <div class="field">

                <img src="<?= base_url() ?>global/site/images/ramzya/<?= $fa['pt_img'] ?>" class="img"/>
                <p>الاسم : <span><?= $fa['fa_name'] ?></span></p>
                <p>المنطقة : <span><?= $fa['ar_name'] ?></span></p>
                <p>اسم المنتج : <span><?= $fa['pt_name'] ?></span></p>
                <p>الية التسويق : <span>مباشر - شركات شحن</span></p>
                <p> رقم الهاتف - الجوال: <span><?= $fa['fa_mobile_number'] ?></span></p>               
                <p>وسيلة التواصل الإجتماعي : 
                    <span style="direction:ltr;text-align:right;clear:left;display:block;margin:0 -5mm 0 0">
                        <?php if (isset($fa['fa_account_facebook'])) { ?>
                            <?= $fa['fa_account_facebook'] ?> - <img src="<?= base_url() ?>global/modules/print/images/facebook.png" alt="" />
                        <?php } ?>

                        <?php if (isset($fa['fa_account_anstaqram'])) { ?>
                            <?= $fa['fa_account_anstaqram'] ?> - <img src="<?= base_url() ?>global/modules/print/images/instagram.png" alt="" />
                        <?php } ?>

                        <?php if (isset($fa['fa_account_twitter'])) { ?>
                            <?= $fa['fa_account_twitter'] ?> - <img src="<?= base_url() ?>global/modules/print/images/twitter.png" alt="" />
                        <?php } ?>

                        <img src="<?= base_url() ?>global/modules/print/images/whatsapp.png" alt="" />
                    </span>
                </p>

            </div>

        <?php } ?>

        <?php
    }
    ?>
</div><!-- Paper1 End -->









