# | Date | Account | Currency | Expected | Paid Amount | Balance | Payment for |
---|---|---|---|---|---|---|---|
{{ ++$offset }} | {{ $key->last()->date }} | {{ $key->last()->account }} | {{ $key->last()->currency->code }} | {{ number_format($expected = student()->campus->programmes()->where('id',student()->programme_id)->first()->pivot->fee??0,2) }} | {{ number_format($paid = $key->sum('amount'),2) }} | {{ number_format($expected - $paid,2) }} | {{ $key->last()->category }} |