<div class="main-container progress-public space-pt-xl">
    <div class="row space-mb-md">
         <div class="col-12 text-center text-sm-start">
        <?php if ($_view["imageLogo"] ?? null) { ?>
            <img src="<?= $_view["imageLogo"]; ?>" class="profile-logo space-mb-sm" title="<?= $_view["name"]; ?> Logo">
        <?php } ?>
        </div>
 
        <div class="col text-center text-sm-start mb-3 mb-sm-0">
            <h1 class="headline medium space-mb-xs"><?= $_view["name"]; ?></h1>
            <h2 class="txt-big"><?= $_view["industry"]; ?></h2>
        </div>
      
        <div class="col-sm-auto text-center text-md-start">
            <?php if ($_view["imageSeal"] ?? null) { ?>
                <img src="<?= $_view["imageSeal"]; ?>" title="<?= $_view["name"]; ?> 2bgood Siegel">
            <?php } ?>
        </div>
       
    </div>

    <div class="row g-c">
        <div class="col-lg-6 text-center text-sm-start">
            <?php if (!empty($_view["description"])) { ?>
                <h3 class="headline small space-mb-sm">Über <?= $_view["name"]; ?></h3>
                <?= nl2br($_view["description"]); ?>
            <?php } ?>
            <?php
                if (!empty($_view["url"])) {
                    echo "<p class='mt-3'><a href='$_view[url]' title='$_view[name] Webseite' target='_blank'>$_view[url]</a></p>";
                }
                if (!empty($_view["emailPublic"])) {
                    echo "<p><a href='mailto:$_view[emailPublic]' title='$_view[name] Kontakadresse'>$_view[emailPublic]</a></p>";
                }
            ?>
        </div>
        <?php if ($_view["imageDescription"] ?? null) { ?>
            <div class="col-lg-6">
                <img class="w-100" src="<?= $_view["imageDescription"]; ?>" title="<?= $_view["name"]; ?> Foto">
            </div>
        <?php } ?>
    </div>
   
    <?= $_con->getRenderedView("profile/scores.partial", ["scores" => $_view["scores"], "industryScores" => $_view["industryScores"]]) ?>
    
    <?php if ($_view["imagesFooter"] ?? null) { ?>
    <section>
        <div class="slider-expand">
            <div class="slider-container">
                <?php foreach ($_view["imagesFooter"] as $image) { ?>
                <div class="col-xl-3 col-lg-6">
                    <img src="<?= $image;?>" class="img-fluid">
                </div>
                <?php } ?>
            </div>
        </div>
    </section>
    <?php } ?>

    <?php if ($_view["posts"] ?? null) { ?>
    <section>
        <div class="row space-mb-md">
            <div class="col">
                <h3 class="headline medium">Veröffentlichungen</h3>
            </div>
        </div>
        <div class="row g-c">
            <?php foreach ($_view["posts"] as $row) { ?>
                <div class="col-xl-4 col-lg-6">
                    <?= $_con->getRenderedView("magazine/articleCard.partial", $row); ?>
                </div>
            <?php } ?>
        </div>
    </section>
    <?php } ?>
</div>
