<h3 class="text-center">Vehicle History</h3>

<table class="table table-bordered">
    <thead>
    <tr class="bd-info">
        <th>#</th>
        <th>ٹرپ</th>
        <th>ائل</th>
        <th>اخراجات</th>
        <th>کرایہ</th>
    </tr>
    </thead>
    <tbody>
    @forelse($trips as $key => $detail)
        <tr class="">
            <td>{{$loop->iteration}}</td>
            <th>{{$detail->trip->id}}</th>
            <td>{{$detail->trip->trip_oils->sum('liters')}} Liters</td>
            <td>{{$detail->trip->trip_expenses->sum('amount')  }}</td>
            <td>{{ $detail->actual_freight }}</td>
        </tr>
    @empty
        <tr>
            <td colspan="5">No History Found</td>
        </tr>
    @endforelse
    </tbody>
</table>
