<!DOCTYPE html>
<html>

<head>
    <title>Ceklist</title>
    <style>
    .header {
        text-align: center;
        margin-top: -40px;
        line-height: 0.2;

    }

    .judul {
        width: 700px;
        /* margin: auto; */
        height: auto;
        border: 1px solid black;
        padding: 5px;
        overflow: auto;
        /* margin:auto; */
        font-size: 12px;
        /* page-break-before: always; */


    }

    .judul2 {
        width: 700px;
        /* margin: auto; */
        height: 10px;
        border: 1px solid black;
        padding: 5px;
        overflow: auto;
        /* margin:auto; */
        font-size: 12px;
        page-break-inside: avoid;


    }

    .judul3 {
        width: 700px;
        /* margin: auto; */
        height: auto;
        border: 1px solid black;
        padding: 5px;
        overflow: auto;
        /* margin:auto; */
        font-size: 12px;
        page-break-inside: avoid;


    }

    /* .judul3 td {
        border: 1px solid black;

    } */

    .ttd {
        width: 300px;
        /* margin: auto; */
        height: auto;
        border: 0px;
        padding: 5px;
        margin-left: 400px;
        overflow: auto;
        /* margin:auto; */
        font-size: 12px;

    }

    .sub1 {
        font-size: 12px;
        font-weight: bold;

    }

    .uraian1 {
        font-size: 12px;
    }

    .inviseble table {
        border-collapse: collapse;
        /* width: 100%; */
        /* padding-top: -15px; */

    }

    .inviseble th {
        height: 30px;
        text-align: center;
    }

    .inviseble table,
    td,
    th {
        /* border: 1px solid black; */
        height: 14px;
        font-size: 12px;
        /* text-align: left; */
    }

    .inviseble td {
        text-align: left;

    }

    table.border td,
    th {
        border: 1px solid black;
        text-align: center;



    }

    table.no_border td,
    th {
        /* border: 1px solid black; */
        text-align: center;
    }

    div.page_break+div.page_break {
        /* page-break-before: always; */
        page-break-inside: auto;
    }

    .no-print {
        display: none;
    }
    </style>

    <style type="text/css" media="print">
    .no-print {
        display: none;
    }
    </style>
</head>

<body>
    <button onclick="window.print()" class="no-print">Print this page</button>

    <div class="header">

        <h4>{{$company}}</h4>
        <h4>DAFTAR NAMA KARYAWAN</h4>

    </div>
    <!-- <div class="sub1">1. JUDUL PENELITIAN</div> -->
    <!-- <div class="judul">ks</p>
    </div> -->
    <!-- <table class="inviseble">
        <tbody>
            <tr>
                <td>Nama Ceklist</td>
                <td></td>
            </tr>



        </tbody>
    </table> -->



    <table style="border-collapse: collapse; width: 100%;" class="border">

        <thead>

            <td style="width:3%;"><strong>NO</strong></td>
            <td style="width:20%;"><strong>Nama</strong></td>
            <td style="width:10%;"><strong>Email</strong></td>
            <td style="width:7%;"><strong>Role</strong></td>
            <td style="width:7%;"><strong>NIP</strong></td>
            <td><strong>Mitra</strong></td>
            <td><strong>Divisi</strong></td>
            <td><strong>Posisi</strong></td>

        </thead>

        <tbody>
            @foreach ($user as $index => $item)
            <tr>
                <!-- <td></td> -->
                <td>{{$index+1}}</td>
                <td style="text-align:left">{{  $item->name ?? '' }}</td>

                <td>{{$item->email ?? ''}}</td>
                <td>{{$item->role->name ?? ''}}</td>
                <td>{{$item->nip ?? ''}}</td>
                <td>{{$item->partner->name ?? ''}}</td>
                <td>{{$item->division->name ?? ''}}</td>
                <td>{{$item->position->name ?? ''}}</td>

            </tr>

            @endforeach





        </tbody>
    </table>
    <br />










</body>

</html>