<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Missed Punch Report</title>

    <style>
        @page {
            margin: 140px 40px 80px 40px;
        }

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

        /* =========================
           HEADER
        ========================== */
        .header {
            position: fixed;
            top: -120px;
            left: 0;
            right: 0;
            height: 100px;
        }

        .header-left {
            float: left;
            width: 70%;
        }

        .header-right {
            float: right;
            width: 30%;
            text-align: right;
        }

        .report-name {
            font-size: 15px;
            font-weight: bold;
        }

        .company-name {
            font-size: 13px;
            font-weight: bold;
        }


        .small-text {
            font-size: 11px;
        }

       .footer {
            position: fixed;
            bottom: -60px;
            left: 0;
            right: 0;
            height: 50px;
            font-size: 10px;
        }

        .footer-left {
            float: left;
            width: 33%;
            text-align: left;
        }

        .footer-center {
            float: left;
            width: 34%;
            text-align: center;
        }

        .footer-right {
            float: right;
            width: 33%;
            text-align: right;
        }

        .page-number:before {
            content: "Page " counter(page) " / " counter(pages);
        }

        /* =========================
           TABLE
        ========================== */
        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            border: 1px solid #000;
            padding: 5px;
            font-size: 8px;
        }

        th {
            background: #f2f2f2;
        }
    </style>
</head>
<body>

<!-- ================= HEADER ================= -->
<div class="header">
    <div class="header-left">
        <div class="report-name">
            Missed Punch Report
        </div>
        <div class="company-name">
            <?php echo e($company->legal_name ?? $company->display_name ?? ''); ?>

        </div>
        <div class="small-text">
            <?php echo e(trim(implode(', ', array_filter([$company->address_line1 ?? null, $company->address_line2 ?? null])))); ?>

        </div>
        <div class="small-text">
            Branch: <?php echo e($branch->name ?? 'All Branches'); ?>

        </div>
    </div>

    <div class="header-right">
        <?php if(!empty($company->logo)): ?>
            <img src="<?php echo e(public_path($company->logo)); ?>" height="70">
        <?php endif; ?>
    </div>
</div>

<!-- ================= FOOTER ================= -->
<div class="footer">
    <div class="footer-left">
        LaraOffice
    </div>

    <div class="footer-center">
        <span class="page-number"></span>
    </div>

    <div class="footer-right">
        Printed: <?php echo e(now()->format('Y-m-d H:i')); ?>

    </div>
</div>


<!-- ================= CONTENT ================= -->
<table border="1" width="100%" cellpadding="6" cellspacing="0">
    <thead>
        <tr style="background:#eaeaea; font-weight:bold;">
            <th>Emp Code</th>
            <th>Name</th>
            <th>Department</th>
            <th>Designation</th>
            <th>Date</th>
            <th>In Time</th>
            <th>Out Time</th>
            <th>Status</th>
        </tr>
    </thead>
    <tbody>

        <?php $__currentLoopData = $records; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td><?php echo e($row->employee->employee_code); ?></td>
            <td>
                <?php echo e($row->employee->first_name); ?>

                <?php echo e($row->employee->middle_name); ?>

                <?php echo e($row->employee->last_name); ?>

            </td>
            <td><?php echo e(optional($row->employee->department)->name); ?></td>
            <td><?php echo e(optional($row->employee->designation)->name); ?></td>
            <td><?php echo e($row->attendance->attendance_date->format('Y-m-d')); ?></td>

            <td>
                <?php echo e($row->in_time ? $row->in_time->format('H:i') : 'Missing'); ?>

            </td>

            <td>
                <?php echo e($row->out_time ? $row->out_time->format('H:i') : 'Missing'); ?>

            </td>

            <td style="color:red;">
                <?php if(is_null($row->in_time) && is_null($row->out_time)): ?>
                    Both Missing
                <?php elseif(is_null($row->in_time)): ?>
                    In Missing
                <?php elseif(is_null($row->out_time)): ?>
                    Out Missing
                <?php endif; ?>
            </td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    </tbody>
</table>




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