<tbody>
    @foreach($expenses as $expense)
    <tr>
        <td>{{ $expense->expense_date }}</td>
        <td>{{ $expense->category }}</td>
        <td>{{ $expense->expense_for }}</td>
        <td>${{ number_format($expense->amount, 2) }}</td>
        <td>{{ $expense->reference_no }}</td>
        <td>{{ $expense->note }}</td>
        <td>
            <a href="{{ route('expenses.edit', $expense->id) }}" class="btn btn-warning btn-sm">Edit</a>
            <form action="{{ route('expenses.destroy', $expense->id) }}" method="POST" style="display:inline-block;">
         
                <button type="submit" class="btn btn-danger btn-sm">Delete</button>
            </form>
        </td>
    </tr>

</tbody>
