@extends('layouts.app')
@section('content')
<div class="container-xxl flex-grow-1 container-p-y"><div class="card"><div class="card-header"><h5 class="mb-0">Manage Payout Request</h5></div><div class="card-body">
<form method="POST" action="{{ route('admin.payout-requests.update',$payoutRequest) }}" class="row g-3">@csrf @method('PUT')
<div class="col-md-4"><label class="form-label">Status</label><select name="status" class="form-select">@foreach(['pending','approved','rejected','paid'] as $status)<option value="{{ $status }}" @selected($payoutRequest->status===$status)>{{ ucfirst($status) }}</option>@endforeach</select></div>
<div class="col-12"><label class="form-label">Admin Note</label><textarea name="admin_note" class="form-control">{{ $payoutRequest->admin_note }}</textarea></div>
<div class="col-12 d-flex gap-2"><button class="btn btn-primary">Update</button></form><form method="POST" action="{{ route('admin.payout-requests.destroy',$payoutRequest) }}">@csrf @method('DELETE')<button class="btn btn-outline-danger">Delete</button></form></div>
</div></div></div>
@endsection
