@extends('layouts.app')
@section('title','Transactions')
@section('content')
<h2>Transactions</h2>
<table style="width:100%;background:#fff;padding:12px;border-radius:8px">
    <thead><tr><th>ID</th><th>Merchant</th><th>Gateway</th><th>Amount</th><th>Status</th></tr></thead>
    <tbody>
        @foreach($transactions ?? [] as $t)
        <tr><td>{{ $t->id }}</td><td>{{ $t->merchant_id }}</td><td>{{ $t->payment_gateway }}</td><td>{{ $t->amount }}</td><td>{{ $t->status }}</td></tr>
        @endforeach
    </tbody>
</table>
@endsection
