Current File : //home/tradevaly/prioyshi.com/project/resources/views/admin/message/dispute.blade.php |
@extends('layouts.admin')
@section('content')
<div class="content-area">
<div class="mr-breadcrumb">
<div class="row">
<div class="col-lg-12">
<h4 class="heading">{{ __('Disputes') }}</h4>
<ul class="links">
<li>
<a href="{{ route('admin.dashboard') }}">{{ __('Dashboard') }} </a>
</li>
<li>
<a href="javascript:;">{{ __('Messages') }}</a>
</li>
<li>
<a href="javascript:;">{{ __('Disputes') }}</a>
</li>
</ul>
</div>
</div>
</div>
<div class="product-area">
<div class="row">
<div class="col-lg-12">
<div class="mr-table allproduct">
@include('includes.admin.form-success')
<div class="table-responsiv">
<table id="geniustable" class="table table-hover dt-responsive" cellspacing="0" width="100%">
<thead>
<tr>
<th>{{ __('Name') }}</th>
<th>{{ __('Subject') }}</th>
<th>{{ __('Order Number') }}</th>
<th>{{ __('Date') }}</th>
<th>{{ __('Actions') }}</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
{{-- DELETE MODAL --}}
<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-labelledby="modal1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header d-block text-center">
<h4 class="modal-title d-inline-block">{{ __('Confirm Delete') }}</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<!-- Modal body -->
<div class="modal-body">
<p class="text-center">{{ __('You are about to delete this Dispute. Every messages under this dispute will be deleted.') }}</p>
<p class="text-center">{{ __('Do you want to proceed?') }}</p>
</div>
<!-- Modal footer -->
<div class="modal-footer justify-content-center">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ __('Cancel') }}</button>
<a class="btn btn-danger btn-ok">{{ __('Delete') }}</a>
</div>
</div>
</div>
</div>
{{-- DELETE MODAL ENDS --}}
{{-- MESSAGE MODAL --}}
<div class="sub-categori">
<div class="modal" id="vendorform" tabindex="-1" role="dialog" aria-labelledby="vendorformLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="vendorformLabel">{{ __('Add Dispute') }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container-fluid p-0">
<div class="row">
<div class="col-md-12">
<div class="contact-form">
<form id="emailreply1">
{{csrf_field()}}
<ul>
<li>
<input type="email" class="input-field eml-val" id="eml1" name="to" placeholder="{{ __('Email') }} *" value="" required="">
</li>
<li>
<input type="text" class="input-field" id="order" name="order_number" placeholder="{{ __('Order Numebr') }} *" value="" required="">
</li>
<li>
<input type="text" class="input-field" id="subj1" name="subject" placeholder="{{ __('Subject') }} *" required="">
</li>
<li>
<textarea class="input-field textarea" name="message" id="msg1" placeholder="{{ __('Your Message') }} *" required=""></textarea>
</li>
<input type="hidden" name="type" value="Dispute">
</ul>
<button class="submit-btn" id="emlsub1" type="submit">{{ __('Send Message') }}</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{-- MESSAGE MODAL ENDS --}}
@endsection
@section('scripts')
<script type="text/javascript">
var table = $('#geniustable').DataTable({
ordering: false,
processing: true,
serverSide: true,
ajax: '{{ route('admin-message-datatables','Dispute') }}',
columns: [
{ data: 'name', name: 'name' },
{ data: 'subject', name: 'subject' },
{ data: 'order_number', name: 'order_number' },
{ data: 'created_at', name: 'created_at'},
{ data: 'action', searchable: false, orderable: false }
],
language: {
processing: '<img src="{{asset('assets/images/'.$gs->admin_loader)}}">'
},
drawCallback : function( settings ) {
$('.select').niceSelect();
}
});
$(function() {
$(".btn-area").append('<div class="col-sm-4 text-right">'+
'<a class="add-btn" href="javascript:;" data-toggle="modal" data-target="#vendorform"><i class="fas fa-envelope"></i> {{ __('Add Dispute') }}</a>'+'</div>');
});
</script>
@endsection