added hibernate
This commit is contained in:
@@ -281,6 +281,7 @@ desired effect
|
||||
});
|
||||
|
||||
$('#store_owners_table').DataTable();
|
||||
|
||||
$('#tbl_commission').DataTable({
|
||||
initComplete: function () {
|
||||
this.api().columns(0).every( function () {
|
||||
@@ -1337,39 +1338,69 @@ desired effect
|
||||
|
||||
});
|
||||
|
||||
$(".btn-delete-print-file").click(function(e){
|
||||
e.preventDefault();
|
||||
var r = confirm("Do you really want to delete this Print File? This process cannot be undone.");
|
||||
if (r == true) {
|
||||
var id = $(this).data('id');
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('admin/print-files/delete') }}",
|
||||
data : {
|
||||
id: id
|
||||
},
|
||||
beforeSend: function(xhr){
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
$(".btn-delete-print-file").click(function(e){
|
||||
e.preventDefault();
|
||||
var r = confirm("Do you really want to delete this Print File? This process cannot be undone.");
|
||||
if (r == true) {
|
||||
var id = $(this).data('id');
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('admin/print-files/delete') }}",
|
||||
data : {
|
||||
id: id
|
||||
},
|
||||
beforeSend: function(xhr){
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
},
|
||||
success : function(response){
|
||||
|
||||
if(response.success){
|
||||
alert(response.message);
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
$('#store_hibernate').change(function() {
|
||||
var data = $("#frm_edit_store").serializeArray();
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "{{ url('admin/post/update-hibernate') }}",
|
||||
data : {
|
||||
data: data,
|
||||
IsActive: $(this).prop('checked')
|
||||
},
|
||||
beforeSend:function(xhr){
|
||||
var token = $('meta[name="csrf_token"]').attr('content');
|
||||
|
||||
if (token) {
|
||||
return xhr.setRequestHeader('X-CSRF-TOKEN', token);
|
||||
}
|
||||
xhr.setRequestHeader( 'X-Requested-With', 'XMLHttpRequest');
|
||||
},
|
||||
success : function(response){
|
||||
|
||||
// console.log(response);
|
||||
if(response.success){
|
||||
alert(response.message);
|
||||
location.reload();
|
||||
}else{
|
||||
// $('#isActiveAnnouncement').attr('checked', false);
|
||||
|
||||
$('#isActiveAnnouncement').removeClass('btn-primary');
|
||||
// $(this).addClass('btn-default');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
|
||||
}); // end document ready
|
||||
|
||||
function formatStatePattern (state) {
|
||||
|
||||
@@ -86,6 +86,11 @@
|
||||
<i class="fa fa-list-alt"></i> <span>Print Orders</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('admin/tax-settings') ? 'active' : '' }}">
|
||||
<a href="{{ url('/admin/tax-settings') }}">
|
||||
<i class="fa fa-money"></i> <span>Tax Settings</span>
|
||||
</a>
|
||||
</li>
|
||||
@php $under_reports = array("/admin/reports", "/admin/commission") @endphp
|
||||
<li class="treeview {{ (in_array($getrequest_url, $under_reports)) ? 'active' : '' }}">
|
||||
<a href="#"><i class="fa fa-line-chart"></i> <span>Reports</span>
|
||||
|
||||
@@ -115,6 +115,14 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label">Hibernate</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="checkbox">
|
||||
<input type="checkbox" @if($teamstore_array[0]->IsHibernated == 1) checked @endif id="store_hibernate" name="store_hibernate" data-toggle="toggle" data-width="100px" data-on="<i class='fa fa-check-circle'></i> Yes" data-off="<i class='fa fa-ban'></i> No" data-size="small">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label"> </label>
|
||||
<div class="col-sm-8">
|
||||
|
||||
93
resources/views/admin_pages/tax_index.blade.php
Normal file
93
resources/views/admin_pages/tax_index.blade.php
Normal file
@@ -0,0 +1,93 @@
|
||||
@extends('admin.main')
|
||||
@section('content')
|
||||
<style>
|
||||
.previewImage {
|
||||
height: 150px;
|
||||
width: 95%;
|
||||
overflow: hidden;
|
||||
object-fit: contain;
|
||||
}
|
||||
</style>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
Tax Settings
|
||||
<!-- <small>Optional description</small> -->
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ url ('admin') }}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li class="active"> Tax Settings</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h4 class="box-title">Tax Settings</h4>
|
||||
<button class="btn btn-primary pull-right" data-toggle="modal" data-target="#modal_show_stores"> <i class="fa fa-plus"></i> Add</button>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
{{-- <div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label class="control-label">Filter By Store</label>
|
||||
<div id="store_filter"></div>
|
||||
</div>
|
||||
</div> --}}
|
||||
<div class="col-md-12">
|
||||
<table class="table table-bordered table-condensed nowrap" id="tbl_commission">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Teamstore</th>
|
||||
<th>Date Created</th>
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($taxLists as $taxList)
|
||||
<tr>
|
||||
<td>{{ $taxList->Id }}</td>
|
||||
<td>{{ $taxList->StoreName }}</td>
|
||||
<td>{{ $taxList->DateCreated }}</td>
|
||||
<td class="text-center">
|
||||
<button class="btn btn-danger btn-xs">Remove</button>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="modal_show_stores" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h4 class="modal-title">List of Teamstore</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="modal_store_order_details_body_content">
|
||||
<p> Loading content <i class="fa fa-spinner fa-spin"></i> </p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user