<form action="{{route('dryer.post.accept')}}" method="post" class="mt-3 mb-5" id="EditForm">
    {{csrf_field()}}
    <input type="hidden" name="requestId" value="{{$RequestInfo->id}}">
    <strong class="mb-2">آیا کلاله را از همه سرتیم ها تحویل گرفتید؟</strong>
    <div class="d-flex justify-content-between mt-3">
        <div class="form-group">
            <label for="colale" class="mb-2">وزن کلاله تر (گرم)</label>
            <input type="number" step=0.01 class=" form-control" name="colale" id="colale" required>
        </div>
        <!-- <div class="form-group d-flex align-items-end">
            <span class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#disagreeModal">اعلام مغایرت</span>
        </div> -->
        <div class="form-group d-flex align-items-end">
            <button type="submit" class="btn btn-success" id="SubmitFormBtn">تحویل گرفتم</button>
        </div>
    </div>
</form>

<div class="modal fade" id="disagreeModal" tabindex="-1" aria-labelledby="disagreeModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="disagreeModalLabel">اعلام مغایرت</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <p class="text-danger text-center">آیا مطمئن هستید که مغایرت اعلام کنید؟</p>
                <form action="{{route('dryer.post.disagree')}}" method="post">
                    {{csrf_field()}}
                    <input type="hidden" name="reqId" value="{{$RequestInfo->id}}">
                    <label for="reason" class="mb-2">علت مغایرت:</label>
                    <textarea name="reason" id="reason" cols="30" rows="5" class="form-control" required></textarea>
                    <div class="d-flex justify-content-center mt-3">
                        <button type="submit" class="btn btn-danger">ثبت مغایرت</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>