<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <style>
        @page { margin: 0; }

        body {
            margin: 0;
            font-family: DejaVu Sans, sans-serif;
        }

        .card {
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            border: 3px solid #1f4e79;
            padding: 10px 8px;
            text-align: center;
        }

        .logo {
            height: 35px;
            margin-bottom: 5px;
        }

        .photo-box {
            border: 2px solid #1f4e79;
            padding: 3px;
            margin: 8px auto;
            width: 80px;
            height: 95px;
        }

        .photo-box img {
            width: 100%;
            height: 100%;
        }

        .emp-code {
            font-size: 12px;
            font-weight: bold;
            margin-top: 6px;
        }

        .emp-name {
            font-size: 12px;
            font-weight: bold;
            margin-top: 5px;
            text-transform: uppercase;
        }

        .designation {
            font-size: 10px;
            font-weight: bold;
            margin-top: 5px;
        }

        .small-text {
            font-size: 9px;
            margin-top: 3px;
        }

        .qr {
            margin-top: 20px;
        }

        .back-title {
            font-weight: bold;
            font-size: 10px;
            margin-bottom: 5px;
        }

        .address {
            font-size: 9px;
            margin-top: 15px;
        }

        .signature {
            margin-top: 20px;
            height: 35px;
        }

    </style>
</head>
<body>

<?php $__currentLoopData = $employees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $emp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

<!-- ================= FRONT SIDE ================= -->
<div class="card">

    <?php if($company && $company->logo): ?>
        <img class="logo" src="<?php echo e(public_path($company->logo)); ?>">
    <?php endif; ?>

    <div style="font-size:9px; font-weight:bold;">
        <?php echo e(strtoupper($company->legal_name ?? $company->display_name ?? '')); ?>

    </div>

    <div class="photo-box">
        <?php if($emp->profile_picture): ?>
            <img src="<?php echo e(public_path('storage/' . $emp->profile_picture)); ?>">
        <?php endif; ?>
    </div>

    <div class="emp-code">
        <?php echo e($emp->employee_code); ?>

    </div>

    <div class="emp-name">
        <?php echo e(strtoupper($emp->first_name . ' ' . $emp->last_name)); ?>

    </div>

    <div class="designation">
        <?php echo e(strtoupper(optional($emp->designation)->name)); ?>

    </div>

    <div class="small-text">
        DOJ - <?php echo e(optional($emp->date_of_joining)->format('Y-m-d')); ?>

    </div>

    <div class="small-text">
        NIC - <?php echo e($emp->nic_number); ?>

    </div>

</div>

<!-- PAGE BREAK -->
<div style="page-break-after: always;"></div>

<!-- ================= BACK SIDE ================= -->
<div class="card">

    <div class="back-title">
        AUTHORIZED SIGNATURE
    </div>

    <?php if($company && $company->authorized_signature): ?>
        <img class="signature" src="<?php echo e(public_path('storage/' . $company->authorized_signature)); ?>">
    <?php endif; ?>

    <!-- QR Code -->
    

    <div class="back-title">
        HOLDER'S SIGNATURE
    </div>

    <div class="address">
        If found, please return to:<br>
        <?php echo e($company->legal_name ?? $company->display_name ?? ''); ?><br>
        <?php echo e(trim(implode(', ', array_filter([$company->address_line1 ?? null, $company->address_line2 ?? null])))); ?><br>
        Tel - <?php echo e($company->phone ?? ''); ?>

    </div>

</div>

<?php if(!$loop->last): ?>
    <div style="page-break-after: always;"></div>
<?php endif; ?>

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

</body>
</html>
<?php /**PATH /home/codeproh/va.laraoffice.com/app/Modules/HR/Reports/Providers/../Views/pdf/employee-photo.blade.php ENDPATH**/ ?>