diff --git a/resources/views/admin/profiles/edit.blade.php b/resources/views/admin/profiles/edit.blade.php
new file mode 100644
index 000000000..7d96dfe90
--- /dev/null
+++ b/resources/views/admin/profiles/edit.blade.php
@@ -0,0 +1,234 @@
+@extends('admin.partial.template-full')
+
+@section('section')
+
- {{$profiles->links()}}
+ {{$profiles->appends([
+ 'layout'=>request()->layout,
+ 'search'=>request()->search,
+ 'filter'=>request()->filter,
+ 'order'=>request()->order
+ ])->links()}}
@else
@@ -84,7 +188,7 @@
@@ -112,7 +216,12 @@
@endforeach
- {{$profiles->links()}}
+ {{$profiles->appends([
+ 'layout'=>request()->layout,
+ 'search'=>request()->search,
+ 'filter'=>request()->filter,
+ 'order'=>request()->order
+ ])->links()}}
@endif
@endsection
@@ -124,7 +233,8 @@
display: none;
}
-.user-row:hover {
+.user-row:hover,
+.user-row-active {
background-color: #eff8ff;
}
.user-row:hover .action-row {
@@ -140,5 +250,128 @@
$('.filesize').each(function(k,v) {
$(this).text(filesize(v.getAttribute('data-size'), {unix:true, round:0}))
});
+ $('.col-ord').on('click', function(e) {
+ e.preventDefault();
+ let el = $(this);
+ let ord = el.data('dir');
+ let col = el.data('col');
+ let wurl = new URL(window.location.href);
+ let query_string = wurl.search;
+ let search_params = new URLSearchParams(query_string);
+
+ if(ord == 'asc') {
+ search_params.set('filter', col);
+ search_params.set('order', ord);
+ wurl.search = search_params.toString();
+ el.find('i').removeClass('fa-chevron-up').addClass('fa-chevron-down');
+ el.data('dir', 'desc');
+ } else {
+ search_params.set('filter', col);
+ search_params.set('order', ord);
+ wurl.search = search_params.toString();
+ el.find('i').removeClass('fa-chevron-down').addClass('fa-chevron-up');
+ el.data('dir', 'asc');
+ }
+ window.location.href = wurl.toString();
+ });
+
+
+ $(document).on('click', '#row-check-all', function(e) {
+ return;
+ let el = $(this);
+ let attr = el.attr('checked');
+
+ if (typeof attr !== typeof undefined && attr !== false) {
+ $('tbody .user-row').removeClass('user-row-active');
+ $('.bulk-actions').addClass('d-none');
+ $('.row-check-item').removeAttr('checked').prop('checked', false);
+ el.removeAttr('checked').prop('checked', false);
+ } else {
+ $('tbody .user-row').addClass('user-row-active');
+ $('.bulk-actions').removeClass('d-none');
+ el.attr('checked', '').prop('checked', true);
+ $('.row-check-item').attr('checked', '').prop('checked', true);
+ }
+
+ let len = $('.row-check-item:checked').length;
+ if(attr == true) {
+ len--;
+ }
+ $('.bulk-count').text(len).attr('data-count', len);
+ });
+
+
+ $(document).on('click', '.row-check-item', function(e) {
+ return;
+ var el = $(this)[0];
+ let len = $('.row-check-item:checked').length;
+ if($('#row-check-all:checked').length > 0) {
+ len--;
+ }
+ if($(this).hasClass('row-check-all')) {
+ return;
+ };
+ if(el.checked == true) {
+ $(this).parents().eq(2).addClass('user-row-active');
+ $('.bulk-actions').removeClass('d-none');
+ $('.bulk-count').text(len).attr('data-count', len);
+ } else {
+ $(this).parents().eq(2).removeClass('user-row-active');
+ if(len == 0) {
+ $('.bulk-actions').addClass('d-none');
+ } else {
+ $('.bulk-count').text(len).attr('data-count', len);
+ }
+ }
+ if(len == 0) {
+ $('.bulk-actions').addClass('d-none');
+ $('#row-check-all').prop('checked', false);
+ } else {
+ $('.bulk-actions').removeClass('d-none');
+ }
+ });
+
+ $(document).on('click', '.apply-bulk', function(e) {
+ return;
+ e.preventDefault();
+ let len = $('.row-check-item:checked').length;
+ if($('#row-check-all:checked').length > 0) {
+ len--;
+ }
+ if(len == 0) {
+ return;
+ }
+ let action = $('.bulk-action').val();
+ let ids = $('.row-check-item:checked').get().filter(i => {
+ let el = $(i);
+ if(el.hasClass('row-check-all')) {
+ return false;
+ }
+ return true;
+ }).map(i => {
+ return $(i).data('id');
+ });
+ let actions = [
+ '',
+ 'review',
+ 'cw',
+ 'unlist',
+ 'noautolink',
+ 'suspend',
+ 'delete'
+ ];
+ action = actions[action];
+ if(!action) {
+ return;
+ }
+ swal(
+ 'Confirm',
+ 'Are you sure you want to perform this action?',
+ 'warning'
+ ).then(res => {
+ console.log(action);
+ console.log(ids);
+ })
+ });
@endpush
diff --git a/resources/views/admin/reports/home.blade.php b/resources/views/admin/reports/home.blade.php
index b7099514c..569ee9d65 100644
--- a/resources/views/admin/reports/home.blade.php
+++ b/resources/views/admin/reports/home.blade.php
@@ -66,12 +66,10 @@
-
#
Reporter
@@ -84,14 +82,14 @@
@foreach($reports as $report)
-
+
-
+
{{$report->id}}