<style>
    body {
        background-color: transparent;
        font-family: 'verdana';
    }

    .id-card-holder {
        justify-content: center;
        margin: 5px;
        padding: 2px;
        margin-left: 10px;
        margin-right: 10px;
        background-color: #1f1f1f;
        border-radius: 5px;
        position: relative;
        width: calc(50% - 24px);
    }

    .id-card-holder:after {
        content: '';
        width: 7px;
        display: block;
        background-color: #0a0a0a;
        height: 50px;
        position: absolute;
        top: 25px;
        right: -5px;
        border-radius: 0 5px 5px 0;
    }

    .id-card-holder:before {
        content: '';
        width: 7px;
        display: block;
        background-color: #0a0a0a;
        height: 50px;
        position: absolute;
        top: 25px;
        left: -5px;
        border-radius: 5px 0 0 5px;
    }

    .id-card {
        background-color: #fff;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 0 1.5px 0px #b9b9b9;
    }

    .id-card img {
        margin: 0 auto;
    }

    .header img {
        width: 100px;
        height: 75px;
        float: left;
        ;
        border: 1px #1f1f1f solid;
    }

    h2 {
        font-size: 15px;
        margin: 5px 0;
    }

    h3 {
        font-size: 12px;
        margin: 5px 0;
        font-weight: 300;
    }

    .flex-container {
        display: flex;
        flex-wrap: wrap;
    }
</style>
<div class="flex-container" dir="rtl">
    {foreach $allBen as $data}
    <div class="id-card-holder">
        <div class="id-card">
            <div class="header">
                <img src="../views/default/images/beneficiaries/{$data.image}">
            </div>
            <h2>الرقم: {$data.id}</h2>
            <h2>الاسم: {$data.name}</h2>
            <h2>الرقم القومي: {$data.idnumber}</h2>
        </div>
    </div>
    {/foreach}
</div>