<style scoped>

    body {
        font-family: "Helvetica Neue",Helvetica,sans-serif;
        margin:0;
    }

    table {
        border-collapse: collapse;
        border: 1px solid #1c94c4;
        table-layout: fixed;
        width:100%;
    }

    th {
        border: 1px solid #1c94c4;
        height: 40px;
        padding: 10px;
        text-align: left;
        background-color: #1c94c4;
        color: white;
    }

    td {
        width:12.5%;
        border: 1px solid #1c94c4;
        padding: 10px;
        text-align: left;
        font-size:12px;
        /* These are technically the same, but use both */
        overflow-wrap: break-word;
        word-wrap: break-word;

        -ms-word-break: break-all;
        /* Instead use this non-standard one: */
        word-break: normal;

        /* Adds a hyphen where the word breaks, if supported (No Blink) */
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        hyphens: auto;

    }
</style>
<body>
<h2>
    {{ \App\Company::getDetails(\Auth::user()->company_id)->name.' @HRFlo' }}<br>
    {{ $user }} Logs.
</h2>
<h3>
    @if($from != null)
        <br>
        From: {{ $from }}
    @endif
    @if($to != null)
        <br>
        To: {{ $to }}
    @endif
</h3>
<h4>
    Page: {{$page}} / {{$pagesCount}} <small> indicates the exported page from the web-panel</small>
</h4>
<table>
    <thead>
    <tr>
        <th> Emp. ID</th>
        <th> Name</th>
        <th> Action</th>
        <th> Policy Type</th>
        <th> Policy Name</th>
        <th> Status</th>
        <th> Date</th>
        <th> Description</th>
    </tr>
    </thead>
    <tbody>
    @foreach($logs as $item)
        <tr>
            <td style="width: 10%"> {{ $item->employeeId }}</td>
            <td> {{ $item->employeeName }}</td>
            <td> {{ $item->action }}</td>
            <td style="width: 10%"> {{ $item->policyType }}</td>
            <td> {{ $item->policyName }}</td>
            <td> {{ $item->status }}</td>
            <td> {{ $item->date }}</td>
            <td style="width: 17.5%"> {{ $item->description }}</td>
        </tr>
    @endforeach
    </tbody>
</table>
</body>
