@extends('layouts.admin') @section('content')
<div class="row mb-3">
    <div class="col-6">
        <div class="card mb-3">
            <div class="card-header">
                <div class="row flex-between-end">
                    <div class="col-auto align-self-center">
                    <a href='{{ url("/memberpayments", $payment->member_id)}}' class="btn btn-primary btn-sm"><i class="fas fa-money-check"></i>  Payments</a>
                   <br><br>
                        <h5 class="mb-0" data-anchor="data-anchor">Request Edit {{$payment->id}}</h5>
                    </div>
                </div>
            </div>
            <div class="card-body bg-light">
                <form class="form-material" method="POST" action="{{ url ('/payment_edit')}}/{{$payment->id}}">
                    @csrf
                    @method('PUT')
                    @if(count($errors->all()))
                    @foreach ($errors->all() as $error)
                    <div class="alert alert-danger alert-dismissable"> <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a> <strong>Alert!</strong> {{ $error }} </div> @endforeach @endif
                    <div class="row">
                        <input type="text" name = "member_id" hidden value="{{$payment->member_id}}">
                        <div class="col-sm-12">
                            <select class="form-control" required name="reason" id="reason">
                                <option disabled selected>--Select reason--</option>
                                <option># of months error</option>
                            </select>
                        </div>
                    </div>
                    <br>

                    <div class="text-center">
                        <br><button type="submit" class="btn btn-primary btn-sm"><i class="far fa-paper-plane"></i> Send Request</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection