@extends('layouts.app')
@section('content')
<h1 class="text-xl font-semibold mb-4">Payments</h1>
<table class="w-full bg-white rounded shadow">
  <tr class="border-b"><th class="p-2">Ref</th><th>Amount</th><th>Gateway</th><th>Status</th><th>Date</th></tr>
  @foreach($orders as $o)
  <tr class="border-b"><td class="p-2">{{ $o->reference }}</td><td>{{ number_format($o->amount) }} {{ $o->currency }}</td><td>{{ $o->gateway }}</td><td>{{ $o->status }}</td><td>{{ $o->created_at }}</td></tr>
  @endforeach
</table>
@endsection
