@extends('layouts.app', ['pageTitle' => 'Expense Claims', 'pageSubtitle' => 'Approve, reject or reimburse staff expense claims'])
@section('content')
<div class="card"><h3 class="section-title">Claims</h3><div class="table-wrap"><table><thead><tr><th>No</th><th>User</th><th>Title</th><th>Account</th><th>Amount</th><th>Status</th><th>Action</th></tr></thead><tbody>@foreach($claims as $c)<tr><td>{{ $c->claim_number }}</td><td>{{ $c->user_name }}</td><td>{{ $c->title }}<br><span class="muted">{{ $c->description }}</span></td><td>{{ $c->account_name }}</td><td>₦{{ number_format($c->amount + $c->tax_amount,2) }}</td><td><span class="badge warn">{{ $c->status }}</span></td><td><form method="POST" action="{{ route('admin.claims.update', $c->id) }}" class="actions">@csrf<select name="status"><option value="approved">Approve</option><option value="rejected">Reject</option><option value="paid">Pay</option></select><select name="bank_account_id"><option value="">Bank if paying</option>@foreach($banks as $b)<option value="{{ $b->id }}">{{ $b->bank_name }}</option>@endforeach</select><input name="admin_note" placeholder="Note"><button class="btn btn-small" type="submit">Update</button></form></td></tr>@endforeach</tbody></table></div></div>
@endsection
