<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Laporan Request Karyawan</title>

    <style>
        body{
            font-family: DejaVu Sans;
            font-size:12px;
        }

        table{
            width:100%;
            border-collapse: collapse;
            margin-top:20px;
        }

        th, td{
            border:1px solid #000;
            padding:8px;
            text-align:left;
        }

        h2{
            text-align:center;
        }
    </style>
</head>
<body>

<h2>Laporan Request Karyawan</h2>

<table>
<tr>
    <th>Karyawan</th>
    <th>Kendaraan</th>
    <th>Status</th>
    <th>Awal</th>
    <th>Akhir</th>
</tr>

@foreach($requests as $request)
<tr>
    <td>{{ $request->user->name }}</td>
    <td>{{ $request->vehicle->vehicle_name }}</td>
    <td>{{ ucfirst($request->status) }}</td>
    <td>{{ $request->start_date }}</td>
    <td>{{ $request->end_date }}</td>
</tr>
@endforeach

</table>

</body>
</html>