@extends('layouts.admin')

@section('content')

<h2>Kalender Booking</h2>

<table>
<tr>
    <th>Nama Karyawan</th>
    <th>Kendaraan</th>
    <th>Awal Peminjaman</th>
    <th>Akhir Peminjaman</th>
</tr>

@foreach($bookings as $item)
<tr>
    <td>{{ $item->user->name ?? '-' }}</td>
    <td>{{ $item->vehicle->vehicle_name ?? '-' }}</td>
    <td>{{ $item->start_date }}</td>
    <td>{{ $item->end_date }}</td>
</tr>
@endforeach

</table>

@endsection