@forelse ($advances as $advance)
    <tr>
        <td>{{ number_format($advance->amount, 0) }}</td>
        <td>{{ date('F j, Y', strtotime($advance->date)) }}</td>
        <td>{{ $advance->note }}</td>
        <td>
            @if (auth()->user()->hasPermissionTo('edit trip advance'))
                <button type="button" class="btn-link edit_advance" data-id="{{ $advance->id }}">
                    <span> اپڈیٹ</span>
                </button>
            @endif
            @if (auth()->user()->hasPermissionTo('edit trip advance'))
                <button type="button" class="btn-link delete_advance" data-id="{{ $advance->id }}"><span
                        class="text-danger">
                            ڈیلیٹ</span>
                </button>
            @endif
        </td>
    </tr>
@empty
    <tr>
        <td colspan="3"> No Data Available</td>
    </tr>
@endforelse
