@forelse($trip_payables as $key => $payable)
    <tr class="">
        <td>{{$loop->iteration}}</td>
        <td>{{date("F j, Y",strtotime($payable->date))}}</td>
        <td>
            {{ $payable->vehicle->vehicle_no }}
        </td>
        <td>{{ $payable->broker->name}}</td>
        <td>{{number_format($payable->amount, 0)}}</td>

        <td>
            @if (auth()->user()->hasPermissionTo('edit trip oil'))
                <button type="button" class="btn-link broker_reach_edit"
                        data-id="{{ $payable->id }}"><span>
                                            اپڈیٹ</span></button>
            @endif
            @if (auth()->user()->hasPermissionTo('delete trip oil'))

                <button type="button" class="btn-link delete_broker_reach"
                        data-id="{{ $payable->id }}"><span class="text-danger">
                                            ڈیلیٹ</span></button>
            @endif
        </td>
    </tr>
@empty
    <tr>
        <td colspan="4" class="text-center">NO RECORD AVAILABLE</td>
    </tr>
@endforelse
