@extends('layouts.app') @section('page_title','Expenses') @section('content')<div class="card top-card"><div class="card-body"><div class="text-end mb-3"><a href="{{ route('expenses.create') }}" class="btn btn-success">New Expense</a></div><table class="table"><thead><tr><th>No</th><th>Date</th><th>Category</th><th>Amount</th><th>Notes</th><th></th></tr></thead><tbody>@foreach($expenses as $expense)<tr><td>{{ $expense->expense_no }}</td><td>{{ $expense->expense_date }}</td><td>{{ $expense->category->name_en }}</td><td>{{ number_format($expense->amount,2) }}</td><td>{{ $expense->notes }}</td><td><a class="btn btn-sm btn-outline-primary" href="{{ route('expenses.edit',$expense) }}">Edit</a></td></tr>@endforeach</tbody></table>{{ $expenses->links() }}</div></div>@endsection
