40 lines
1.8 KiB
PHP
Executable File
40 lines
1.8 KiB
PHP
Executable File
@push('js')
|
|
<div class="modal fade" id="staticBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1"
|
|
aria-labelledby="staticBackdropLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<form action="{{ route('dashboard.orders.comments_status') }}" method="post">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="staticBackdropLabel">Написать комментарий</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
@csrf
|
|
<input type="hidden" name="order_id" value="" id="id_order">
|
|
<input type="hidden" name="type" value="" id="type_order">
|
|
<textarea cols="3" class="form-control" name="comment"></textarea>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-success" data-dismiss="modal">Отменить</button>
|
|
<button type="submit" class="btn btn-secondary">Изменить статус</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('.modal-comment').on('click', function(e) {
|
|
var id = $(this).data('id');
|
|
var type = $(this).data('type');
|
|
|
|
$('#type_order').val(type);
|
|
$('#id_order').val(id);
|
|
})
|
|
})
|
|
</script>
|
|
@endpush
|